serviceworker-webpack-plugin icon indicating copy to clipboard operation
serviceworker-webpack-plugin copied to clipboard

Module not found: Error: Can't resolve 'serviceworker-webpack-plugin/lib/runtime'

Open yyn835314557 opened this issue 7 years ago • 2 comments

I Register the service worker in the main JS thread: import runtime from 'serviceworker-webpack-plugin/lib/runtime';

errors as follows

ERROR in ./src/views/index/index.js
Module not found: Error: Can't resolve 'serviceworker-webpack-plugin/lib/runtime' in '/Users/XXX/front-end/webapps/src/views/index'
 @ ./src/views/index/index.js 43:15-66
 @ ./src/route/menuroutedata.js
 @ ./src/route/index.js
 @ ./src/index.js
 @ multi webpack-hot-middleware/client ./src/index

but I have already install the pulgin, image

thanks a lot

yyn835314557 avatar Apr 04 '18 02:04 yyn835314557

Would you be able to setup a repo that reproduces the issue with the least amount of code necessary?

woutervanvliet avatar Apr 19 '18 09:04 woutervanvliet

Did you find solution for this problem.?Facing the same issue.

anusm14 avatar Jun 03 '19 18:06 anusm14