yt-webpack2-basics icon indicating copy to clipboard operation
yt-webpack2-basics copied to clipboard

npm run build erro

Open patelbj3 opened this issue 7 years ago • 0 comments

Hello,

I watch videos for web pack and I followed the direction according to your videos.But I am getting error when I run "npm run build" command.

error is:

Hash: 6f832ab3a053d2cd9af7 Version: webpack 2.6.1 Time: 58ms Asset Size Chunks Chunk Names bundle.js 3 kB 0 [emitted] main [0] ./assets/js/app.js 369 bytes {0} [built] [failed] [1 error]

ERROR in ./assets/js/app.js Module parse failed: /Users/custombarres-imac2/newCB/stencil/assets/js/app.js Unexpected token (26:13) You may need an appropriate loader to handle this file type. | import subscribe from './theme/subscribe'; | import wishlist from './theme/wishlist'; | import footer-dropup from './scripts/footer-dropup'; | | const PageClasses = { npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! [email protected] build: webpack assets/js/app.js dist/bundle.js npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Please help me to solve this error....please

patelbj3 avatar Jun 09 '17 19:06 patelbj3