Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

import { Treebeard } from 'react-treebeard'; use webpack build project has called "Using removed Babel 5 option " #36

Closed
github302 opened this issue May 30, 2016 · 3 comments

Comments

@github302
Copy link

ERROR in ./~/react-treebeard/index.js
Module build failed: ReferenceError: [BABEL] /Users/xiaoying/coder/go_path/src/helios/static/node_modules/react-treebeard/index.js: Using removed Babel 5 option: /Users/xiaoying/coder/go_path/src/helios/static/node_modules/react-treebeard/.babelrc.stage - Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets
at Logger.error (/Users/xiaoying/coder/go_path/src/helios/static/node_modules/babel-core/lib/transformation/file/logger.js:43:11)
at OptionManager.mergeOptions (/Users/xiaoying/coder/go_path/src/helios/static/node_modules/babel-core/lib/transformation/file/options/option-manager.js:305:20)
at OptionManager.addConfig (/Users/xiaoying/coder/go_path/src/helios/static/node_modules/babel-core/lib/transformation/file/options/option-manager.js:248:10)
at OptionManager.findConfigs (/Users/xiaoying/coder/go_path/src/helios/static/node_modules/babel-core/lib/transformation/file/options/option-manager.js:454:16)
at OptionManager.init (/Users/xiaoying/coder/go_path/src/helios/static/node_modules/babel-core/lib/transformation/file/options/option-manager.js:502:12)
at File.initOptions (/Users/xiaoying/coder/go_path/src/helios/static/node_modules/babel-core/lib/transformation/file/index.js:243:89)
at new File (/Users/xiaoying/coder/go_path/src/helios/static/node_modules/babel-core/lib/transformation/file/index.js:159:72)
at Pipeline.transform (/Users/xiaoying/coder/go_path/src/helios/static/node_modules/babel-core/lib/transformation/pipeline.js:49:16)
at transpile (/Users/xiaoying/coder/go_path/src/helios/static/node_modules/babel-loader/index.js:14:22)
at Object.module.exports (/Users/xiaoying/coder/go_path/src/helios/static/node_modules/babel-loader/index.js:88:12)
@ ./containers/StockContainer.js 15:22-48

@hannupekka
Copy link

@github302 I fixed it with react-dnd/react-dnd#407 (comment)

@bradrust
Copy link

I am getting this issue as well with my react-native project.

however, in my react-native project, I don't have a webpack.config.js so I can't fix it with @hannupekka suggestion. Or at least it isn't obvious to me how to do that.

@MichaelDeBoey
Copy link
Contributor

This should be fixed in v2.0.3 I think, since we're using Babel v6.24.1 now? 🙂

CC: @github302 @bradrust

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

No branches or pull requests

4 participants