You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to load custom *.less style files and custom service.worker.js files in the project created by create-react-app! After using the yarn eject, modify the webpack.config.js, add the worker-loader, and open the worker when running in the browser, it will report an error!
#7266
Closed
masx200 opened this issue
Jun 23, 2019
· 4 comments
Unable to load custom *.less style files and custom service.worker.js files in the project created by create-react-app!
After using the yarn eject, modify the webpack.config.js, add the worker-loader, and open the worker when running in the browser, it will report an error!
Unable to load custom less style files and custom service.worker.js files in the project created by create-react-app!
After using the yarn eject, modify the webpack.config.js, add the worker-loader, and open the worker when running in the browser, it will report an error!
The error is as follows:
Error: Uncaught ReferenceError: window is not defined
The text was updated successfully, but these errors were encountered:
masx200
changed the title
Unable to load custom less style files and custom service.worker.js files in the project created by create-react-app! After using the yarn eject, modify the webpack.config.js, add the worker-loader, and open the worker when running in the browser, it will report an error!
Unable to load custom *.less style files and custom service.worker.js files in the project created by create-react-app! After using the yarn eject, modify the webpack.config.js, add the worker-loader, and open the worker when running in the browser, it will report an error!
Jun 23, 2019
Hi @masx200, unfortunately we can't provide a lot of support on custom Webpack configs - as you can imagine, there are an infinite number of possibilities here.
Unable to load custom *.less style files and custom service.worker.js files in the project created by create-react-app!
After using the yarn eject, modify the webpack.config.js, add the worker-loader, and open the worker when running in the browser, it will report an error!
Unable to load custom less style files and custom service.worker.js files in the project created by create-react-app!
After using the yarn eject, modify the webpack.config.js, add the worker-loader, and open the worker when running in the browser, it will report an error!
The error is as follows:
Error: Uncaught ReferenceError: window is not defined
Http://localhost:3000/service-worker-mythread1-bigint.worker.df8d79f899902f2bf4e9.worker.js
There is no window object in the environment where the service worker is running. The global object is WorkerGlobalScope!
package.json
The text was updated successfully, but these errors were encountered: