Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'vue-loader-v16/package.json' #19

Open
planty opened this issue Dec 9, 2020 · 0 comments
Open

Cannot find module 'vue-loader-v16/package.json' #19

planty opened this issue Dec 9, 2020 · 0 comments

Comments

@planty
Copy link

planty commented Dec 9, 2020

Hi, I've followed your "Getting Started" steps, but I'm getting the following error when I run "npm run serve":

PS C:\build\heroes-vue\vue-app> npm run serve

> [email protected] serve C:\build\heroes-vue\vue-app
> vue-cli-service serve

 INFO  Starting development server...
 ERROR  Error: Cannot find module 'vue-loader-v16/package.json'
Require stack:
- C:\build\heroes-vue\vue-app\node_modules\@vue\cli-service\lib\config\base.js
- C:\build\heroes-vue\vue-app\node_modules\@vue\cli-service\lib\Service.js
- C:\build\heroes-vue\vue-app\node_modules\@vue\cli-service\bin\vue-cli-service.js
Error: Cannot find module 'vue-loader-v16/package.json'
Require stack:
- C:\build\heroes-vue\vue-app\node_modules\@vue\cli-service\lib\config\base.js
- C:\build\heroes-vue\vue-app\node_modules\@vue\cli-service\lib\Service.js
- C:\build\heroes-vue\vue-app\node_modules\@vue\cli-service\bin\vue-cli-service.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
    at Function.Module._load (internal/modules/cjs/loader.js:687:27)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at C:\build\heroes-vue\vue-app\node_modules\@vue\cli-service\lib\config\base.js:114:23
    at C:\build\heroes-vue\vue-app\node_modules\@vue\cli-service\lib\Service.js:236:40
    at Array.forEach (<anonymous>)
    at Service.resolveChainableWebpackConfig (C:\build\heroes-vue\vue-app\node_modules\@vue\cli-service\lib\Service.js:236:26)
    at Service.resolveWebpackConfig (C:\build\heroes-vue\vue-app\node_modules\@vue\cli-service\lib\Service.js:240:48)
    at PluginAPI.resolveWebpackConfig (C:\build\heroes-vue\vue-app\node_modules\@vue\cli-service\lib\PluginAPI.js:132:25)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I can workaround this by installing the "vue-loader-v16" package, and then the app is functional, but I'm just wondering if there's something I'm missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant