Uncaught SyntaxError: Unexpected token < #18
Labels
enhancement
New feature or request
question
Further information is requested
wontfix
This will not be worked on
I wanted to create an npm package that internally uses web worker. I got working configuration for that in the
worker-loader
package for webpack as follows.then I could use my library in some react project like that
Board generator is my npm library that uses it's web worker.
When I switched to this plugin I get an error that it cannot find web worker. Everything compiles properly and I am able to see use it in live mode in the browser. (From this project
npm start
). Problem occurs only when I import that library in some other project.Repo:
https://github.com/Jitra/shipbattle-generatorv2 working in here
npm start
React repo importing npm package:
https://github.com/Jitra/react-shipbattle-generator-example
not working
hereOld version with
worker-loader
https://github.com/Jitra/shipbattle-generator
The text was updated successfully, but these errors were encountered: