Skip to content

Cannot find module '@vue/cli-plugin-router/generator/template/src/views/Home.vue' #4291

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

Closed
CXY037 opened this issue Jul 15, 2019 · 1 comment · Fixed by #4330
Closed

Cannot find module '@vue/cli-plugin-router/generator/template/src/views/Home.vue' #4291

CXY037 opened this issue Jul 15, 2019 · 1 comment · Fixed by #4330
Labels

Comments

@CXY037
Copy link

CXY037 commented Jul 15, 2019

Version

4.0.0-alpha.5

Reproduction link

https://github.com/vuejs/vue-cli/issues/new

Environment info

Environment Info:

  System:
    OS: macOS 10.14.5
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Binaries:
    Node: 12.4.0 - /usr/local/bin/node
    Yarn: 1.17.0 - /usr/local/bin/yarn
    npm: 6.9.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 76.0.3809.62
    Firefox: 65.0.2
    Safari: 12.1.1
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

vue create sample
typescript

What is expected?

create success

What is actually happening?

Error: Cannot find module '@vue/cli-plugin-router/generator/template/src/views/Home.vue' from '/Users/xiaoyu/wwwroot/node/neoworld4/node_modules/@vue/cli-plugin-typescript/generator/template/src/views'
at Function.module.exports [as sync] (/Users/xiaoyu/.config/yarn/global/node_modules/resolve/lib/sync.js:71:15)
at renderFile (/Users/xiaoyu/.config/yarn/global/node_modules/@vue/cli/lib/GeneratorAPI.js:408:17)
at /Users/xiaoyu/.config/yarn/global/node_modules/@vue/cli/lib/GeneratorAPI.js:244:27
at processTicksAndRejections (internal/process/task_queues.js:89:5)
at async Generator.resolveFiles (/Users/xiaoyu/.config/yarn/global/node_modules/@vue/cli/lib/Generator.js:209:7)
at async Generator.generate (/Users/xiaoyu/.config/yarn/global/node_modules/@vue/cli/lib/Generator.js:116:5)
at async Creator.create (/Users/xiaoyu/.config/yarn/global/node_modules/@vue/cli/lib/Creator.js:192:5)
at async create (/Users/xiaoyu/.config/yarn/global/node_modules/@vue/cli/lib/create.js:73:3)

@emil14
Copy link

emil14 commented May 13, 2024

So what was the solution?)

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

Successfully merging a pull request may close this issue.

3 participants