Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

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

Open
yyn835314557 opened this issue Apr 4, 2018 · 2 comments
Labels
needmore Need more information

Comments

@yyn835314557
Copy link

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

@woutervanvliet
Copy link
Collaborator

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

@woutervanvliet woutervanvliet added the needmore Need more information label Apr 19, 2018
@anusm14
Copy link

anusm14 commented Jun 3, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needmore Need more information
Projects
None yet
Development

No branches or pull requests

3 participants