Quando provo a compilare il mio javascript con webpack & babel-loader, ottengo: (versione Babel 6+)Webpack Babel 6
Hash: f6a14faa8862d530512e
Version: webpack 1.12.3
Time: 96ms
Asset Size Chunks Chunk Names
backend.js 1.75 kB 0 [emitted] main
backend.js.map 1.43 kB 0 [emitted] main
chunk {0} backend.js, backend.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
Patched!
Come faccio a spostare l'API nodo per babel
-babel-core
?
npm installa babel-core? –
già installato, trovato la soluzione. Ho dovuto disinstallare Babel. Vedi risposta – Seneca