react-forms
react-forms copied to clipboard
ERROR in The node API for `babel` has been moved to `babel-core`. @ multi main
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
> [email protected] 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.
Using this stackoverflow question, the babel core issue is resolved locally but I now get:
~/wk/cliosoft/react/react-forms/examples $ npm start
> [email protected] 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.
from the error, you need t install https://github.com/prometheusresearch/babel-preset-prometheusresearch like
npm install --save-dev babel-preset-prometheusresearch
Thanks, sorted.