react-forms icon indicating copy to clipboard operation
react-forms copied to clipboard

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

Open pwhipp opened this issue 9 years ago • 3 comments

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.

pwhipp avatar Jul 19 '16 05:07 pwhipp

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.

pwhipp avatar Jul 19 '16 06:07 pwhipp

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

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

bsr203 avatar Jul 19 '16 10:07 bsr203

Thanks, sorted.

pwhipp avatar Jul 27 '16 20:07 pwhipp