Bokiej / lwc-webpack

Starter for LWC + Webpack
1 stars 1 forks source link

Webpack Build Issue #1

Open skligerman-sf opened 1 year ago

skligerman-sf commented 1 year ago

Hello! I found your project because I am trying to find a solution to a LWC + Webpack problem. I see the same thing in your project. I ran npm install than npm run build and I get the following build error.

ERROR in ./node_modules/lwc-webpack-plugin/dist/mocks/empty-style.js (./src/style.css.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/lwc-webpack-plugin/dist/mocks/empty-style.js)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
CssSyntaxError

Do you see the same error when you build your project? I am curious if you had this working before. Thanks!

Bokiej commented 1 year ago

Hi @skligerman-sf I checked my repo again. I created fresh clone and ran npm install and then npm run build and project compiled sucesfully without any error. Did you get your error on my repo with fresh install or did you added yours components before?