Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility with Babel 6 #138

Open
Paul-DS opened this issue Nov 4, 2018 · 0 comments
Open

Fix compatibility with Babel 6 #138

Paul-DS opened this issue Nov 4, 2018 · 0 comments

Comments

@Paul-DS
Copy link

Paul-DS commented Nov 4, 2018

Hello,

Thank you for this awesome project !

I just tried to import react-resolver on one of my new project, and I found out that your babel configuration is not compatible with the new Babel versions.

Your .babelrc contain the following:

{
  "stage": 0
}

Which is not valid anymore.

This should be replaced by the following:

{
  "presets": ["stage-0"]
}

Thank you


Edit:
The error displayed when compiling with babel 6 is the following:

ERROR in ./~/react-resolver/dist/index.js
Module build failed: ReferenceError: [BABEL] node_modules\react-resolver\dist\index.js: Using removed Babel 5 option: node_modules\react-resolver.babelrc.stage - Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets
at Logger.error (node_modules\babel-core\lib\transformation\file\logger.js:41:11)
at OptionManager.mergeOptions (node_modules\babel-core\lib\transformation\file\options\option-manager.js:220:20)
at OptionManager.init (node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
at File.initOptions (node_modules\babel-core\lib\transformation\file\index.js:212:65)
at new File (node_modules\babel-core\lib\transformation\file\index.js:135:24)
at Pipeline.transform (node_modules\babel-core\lib\transformation\pipeline.js:46:16)
at transpile (node_modules\babel-loader\lib\index.js:46:20)
at Object.module.exports (node_modules\babel-loader\lib\index.js:163:20)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant