Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

"npm run start" is broken #185

Closed
Daniel15 opened this issue Nov 28, 2016 · 1 comment
Closed

"npm run start" is broken #185

Daniel15 opened this issue Nov 28, 2016 · 1 comment

Comments

@Daniel15
Copy link
Member

Daniel15 commented Nov 28, 2016

rackt-cli uses Babel 5, but this project uses Babel 6. This means that running npm run start will try to execute Babel 5 using Babel 6 options, which fails because Babel 5 doesn't understand presets:

ERROR in ./examples/custom-menu/app.js
Module build failed: ReferenceError: [BABEL] C:\src\react-autocomplete\examples\custom-menu\app.js: Unknown option: C:\src\react-autocomplete\.babelrc.presets
    at Logger.error (C:\src\react-autocomplete\node_modules\babel-loader\node_modules\babel-core\lib\transformation\file\logger.js:58:11)
    at OptionManager.mergeOptions (C:\src\react-autocomplete\node_modules\babel-loader\node_modules\babel-core\lib\transformation\file\options\option-manager.js:126:29)
    at OptionManager.addConfig (C:\src\react-autocomplete\node_modules\babel-loader\node_modules\babel-core\lib\transformation\file\options\option-manager.js:107:10)
    at OptionManager.findConfigs (C:\src\react-autocomplete\node_modules\babel-loader\node_modules\babel-core\lib\transformation\file\options\option-manager.js:168:35)
    at OptionManager.init (C:\src\react-autocomplete\node_modules\babel-loader\node_modules\babel-core\lib\transformation\file\options\option-manager.js:229:12)
    at File.initOptions (C:\src\react-autocomplete\node_modules\babel-loader\node_modules\babel-core\lib\transformation\file\index.js:147:75)
    at new File (C:\src\react-autocomplete\node_modules\babel-loader\node_modules\babel-core\lib\transformation\file\index.js:137:22)
    at Pipeline.transform (C:\src\react-autocomplete\node_modules\babel-loader\node_modules\babel-core\lib\transformation\pipeline.js:164:16)
    at transpile (C:\src\react-autocomplete\node_modules\babel-loader\index.js:12:22)
    at Object.module.exports (C:\src\react-autocomplete\node_modules\babel-loader\index.js:69:12)
 @ multi custom-menu

Related: mzabriskie/rackt-cli#20 tracks updating rackt-cli to use Babel 6.

@CMTegner
Copy link
Collaborator

CMTegner commented Apr 7, 2017

Should be working fine again now. Thanks for letting us know!

@CMTegner CMTegner closed this as completed Apr 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants