You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, I got here because I was getting this error with Vue CLI 3.4.1. I heard talk of Vue CLI 4 fixing it, but here we are, I'm getting the same error on 4.*.
I can't add the plugin to Vue CLI projects either.
I have tried using both version 3 and (several variants of) version 4.
Version 3.12.1:
$ npx @vue/cli@3 create test
$ npx @vue/cli@3 add vue-cli-plugin-nativescript-vue
✔ Successfully installed plugin: vue-cli-plugin-nativescript-vue
? Enter a unique application identifier: org.nativescript.application
? Use HTML5 history mode? (Default: hash mode) No
? Is this a brand new project? (Default: Yes) Yes
? Dual Native AND Web development experience or a Native only? (Default: Dual)
Dual Native AND Web
? What type of template do you want to start with? (Default: Simple) Simple
adding to package.json
deleting from package.json
doing template rendering
🚀 Invoking generator for vue-cli-plugin-nativescript-vue...
ERROR Error: Cannot find module '@vue/cli-service/generator/router.js' from '/home/jonkri/test/node_modules/vue-cli-plugin-nativescript-vue/generator/templates/simple/src'
Error: Cannot find module '@vue/cli-service/generator/router.js' from '/home/jonkri/test/node_modules/vue-cli-plugin-nativescript-vue/generator/templates/simple/src'
at Function.resolveSync [as sync] (/home/jonkri/.npm/_npx/27842/lib/node_modules/@vue/cli/node_modules/resolve/lib/sync.js:89:15)
at renderFile (/home/jonkri/.npm/_npx/27842/lib/node_modules/@vue/cli/lib/GeneratorAPI.js:422:17)
at /home/jonkri/.npm/_npx/27842/lib/node_modules/@vue/cli/lib/GeneratorAPI.js:254:27
at Generator.resolveFiles (/home/jonkri/.npm/_npx/27842/lib/node_modules/@vue/cli/lib/Generator.js:209:13)
at processTicksAndRejections (internal/process/task_queues.js:88:5)
at async Generator.generate (/home/jonkri/.npm/_npx/27842/lib/node_modules/@vue/cli/lib/Generator.js:116:5)
at async runGenerator (/home/jonkri/.npm/_npx/27842/lib/node_modules/@vue/cli/lib/invoke.js:133:3)
at async invoke (/home/jonkri/.npm/_npx/27842/lib/node_modules/@vue/cli/lib/invoke.js:117:3)
The same error occurs on the latest version (4.3.1), 4.2 (4.2.3), 4.1 (4.1.2) and 4.0 (4.0.5).
Using version 4 produces a number of ESLint errors as well:
Activity
JenteVH commentedon Oct 22, 2019
It looks like currently it isn't. Understandable considering vue cli 4 was released 5 days ago.
acacha commentedon Oct 23, 2019
Ok. For reference https://cli.vuejs.org/migrating-from-v3/
acacha commentedon Oct 23, 2019
https://cli.vuejs.org/migrating-from-v3/#the-global-vue-cli
acacha commentedon Oct 23, 2019
yabuking84 commentedon Nov 3, 2019
Have the same error also.
Error: Cannot find module '@vue/cli-service/generator/router/template/src/router.js'
How can we fix this?
luiguild commentedon Nov 4, 2019
This error it's also exist in Vue Cli 3
paperscissors commentedon Nov 7, 2019
Yeah, I got here because I was getting this error with Vue CLI 3.4.1. I heard talk of Vue CLI 4 fixing it, but here we are, I'm getting the same error on 4.*.
Package version 0.2.1.
jonkri commentedon May 16, 2020
I can't add the plugin to Vue CLI projects either.
I have tried using both version 3 and (several variants of) version 4.
Version 3.12.1:
The same error occurs on the latest version (4.3.1), 4.2 (4.2.3), 4.1 (4.1.2) and 4.0 (4.0.5).
Using version 4 produces a number of ESLint errors as well:
The default options were chosen when queried by the
create
andadd
commands.