serviceworker-webpack-plugin
serviceworker-webpack-plugin copied to clipboard
Module not found: Error: Can't resolve 'serviceworker-webpack-plugin/lib/runtime'
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,

thanks a lot
Would you be able to setup a repo that reproduces the issue with the least amount of code necessary?
Did you find solution for this problem.?Facing the same issue.