GoogleChromeLabs/worker-plugin

webpack build fails

dreammonkey opened this issue · 0 comments

I'm trying to build an (ejected) create-react-app which is working fine in development (yarn start)
When Ì run yarn build I run into the error below... I have no idea what's wrong, any input is highly appreciated !

$ yarn build
yarn run v1.22.4
$ node scripts/build.js
Creating an optimized production build...
Failed to compile.

./src/worker/MyWorker.js (./node_modules/worker-plugin/dist/loader.js?name=MyWorker!./src/worker/MyWorker.js)
  Line 39:30:  Expected an assignment or function call and instead saw an expression  no-unused-expressions

PS: I'm using comlink as well