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

ERROR in The node API for babel has been moved to babel-core. @ multi main #142

Open
pwhipp opened this issue Jul 19, 2016 · 3 comments
Open

Comments

@pwhipp
Copy link

pwhipp commented Jul 19, 2016

This error occurs when I invoke npm start to run the examples in a fresh installation on Ubuntu 14.04:

~/react/react-forms/examples $ npm -v
2.14.2
~/react/react-forms/examples $ node -v
v4.0.0-pre
~/react/react-forms/examples $ npm start

> react-forms-examples@1.0.0 start /home/paul/react/react-forms/examples
> node server.js

Listening at 0.0.0.0:4000
Hash: 70814b22e3ca4995d4fd
Version: webpack 1.13.1
Time: 55ms
      Asset     Size  Chunks             Chunk Names
    main.js  1.68 kB       0  [emitted]  main
main.js.map  1.43 kB       0  [emitted]  main
chunk    {0} main.js, main.js.map (main) 28 bytes [rendered]
    [0] multi main 28 bytes {0} [built] [1 error]

ERROR in The node API for `babel` has been moved to `babel-core`.
 @ multi main
webpack: bundle is now VALID.

@pwhipp
Copy link
Author

pwhipp commented Jul 19, 2016

Using this stackoverflow question, the babel core issue is resolved locally but I now get:

~/wk/cliosoft/react/react-forms/examples $ npm start

> react-forms-examples@1.0.0 start /home/paul/react/react-forms/examples
> node server.js

Listening at 0.0.0.0:4000
Hash: 70814b22e3ca4995d4fd
Version: webpack 1.13.1
Time: 302ms
      Asset     Size  Chunks             Chunk Names
    main.js  1.68 kB       0  [emitted]  main
main.js.map  1.43 kB       0  [emitted]  main
chunk    {0} main.js, main.js.map (main) 28 bytes [rendered]
    [0] multi main 28 bytes {0} [built] [1 error]

ERROR in ./src/main.js
Module build failed: Error: Couldn't find preset "prometheusresearch" relative to directory "/home/paul/wk/cliosoft/react/react-forms"
    at /home/paul/react/react-forms/examples/node_modules/babel-core/lib/transformation/file/options/option-manager.js:395:17
    at Array.map (native)
    at OptionManager.resolvePresets (/home/paul/react/react-forms/examples/node_modules/babel-core/lib/transformation/file/options/option-manager.js:387:20)
    at OptionManager.mergePresets (/home/paul/react/react-forms/examples/node_modules/babel-core/lib/transformation/file/options/option-manager.js:370:10)
    at OptionManager.mergeOptions (/home/paul/react/react-forms/examples/node_modules/babel-core/lib/transformation/file/options/option-manager.js:330:14)
    at OptionManager.addConfig (/home/paul/react/react-forms/examples/node_modules/babel-core/lib/transformation/file/options/option-manager.js:232:10)
    at OptionManager.findConfigs (/home/paul/react/react-forms/examples/node_modules/babel-core/lib/transformation/file/options/option-manager.js:442:30)
    at OptionManager.init (/home/paul/react/react-forms/examples/node_modules/babel-core/lib/transformation/file/options/option-manager.js:484:12)
    at File.initOptions (/home/paul/react/react-forms/examples/node_modules/babel-core/lib/transformation/file/index.js:223:65)
    at new File (/home/paul/react/react-forms/examples/node_modules/babel-core/lib/transformation/file/index.js:140:24)
 @ multi main
webpack: bundle is now VALID.

@bsr203
Copy link

bsr203 commented Jul 19, 2016

from the error, you need t install https://github.com/prometheusresearch/babel-preset-prometheusresearch like

npm install --save-dev babel-preset-prometheusresearch

@pwhipp
Copy link
Author

pwhipp commented Jul 27, 2016

Thanks, sorted.

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

No branches or pull requests

2 participants