lxieyang / chrome-extension-boilerplate-react

A Chrome Extensions boilerplate using React 18 and Webpack 5.
MIT License
3.47k stars 1.08k forks source link

no error message for faulty imports in index.js of content script #133

Open javaspeak opened 2 years ago

javaspeak commented 2 years ago

If I add code like:

  import * as Z from 'messeddup';

on the top of:

 src/pages/Content/index.js

and run:

npm run build

the build directory is not created and there is no error message. Seems like error message are swallowed.

Note messeddup is not a real module - it is not in package.json or in node_modules

smith1302 commented 1 year ago

Anyone figure out how to output error messages for situations like this?

sarangak commented 1 year ago

I am having the same issue. No error message and no output from npm run build.

npm run start provides detailed error messages however.

hadnet commented 1 year ago

Same here! Can you help us, @lxieyang ?