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

Error with vue add vue-cli-plugin-nativescript-vue #39

Open
ghost opened this issue Feb 15, 2020 · 1 comment
Open

Error with vue add vue-cli-plugin-nativescript-vue #39

ghost opened this issue Feb 15, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 15, 2020

Hi guys, again,

Hope you are all well !

I have the following error while running vue add vue-cli-plugin-nativescript-vue, any way to solve that ?

% vue add vue-cli-plugin-nativescript-vue

📦  Installing vue-cli-plugin-nativescript-vue...

+ vue-cli-plugin-nativescript-vue@0.3.1
added 36 packages from 22 contributors in 51.848s

11 packages are looking for funding
  run `npm fund` for details

✔  Successfully installed plugin: vue-cli-plugin-nativescript-vue

? Enter a unique application identifier: org.nativescript.quizzTemplate
? Use HTML5 history mode? (Default: hash mode) No
? Is this a brand new project? (Default: Yes) No
? 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

🚀  Invoking generator for vue-cli-plugin-nativescript-vue...
 ERROR  TypeError: Cannot read property 'split' of undefined
TypeError: Cannot read property 'split' of undefined
    at module.exports (/Users/xxxxxxxx/go/src/github.com/eedama/quiz-for-kids.bck/node_modules/vue-cli-plugin-nativescript-vue/generator/index.js:41:62)
    at Generator.initPlugins (/Users/xxxxxxxx/.nvm/versions/node/v12.14.1/lib/node_modules/@vue/cli/lib/Generator.js:150:13)
    at Generator.generate (/Users/xxxxxxxx/.nvm/versions/node/v12.14.1/lib/node_modules/@vue/cli/lib/Generator.js:168:16)
    at runGenerator (/Users/xxxxxxxx/.nvm/versions/node/v12.14.1/lib/node_modules/@vue/cli/lib/invoke.js:109:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:94:5)
    at async invoke (/Users/xxxxxxxx/.nvm/versions/node/v12.14.1/lib/node_modules/@vue/cli/lib/invoke.js:90:3)

Thanks in advance

Cheers,
X

@RedKenrok
Copy link

RedKenrok commented Feb 18, 2020

Ran into the same problem. Simple create a package.json in the root of where you want to add the plug-in with the version field specified. For example:

{
  "name": "my-app",
  "version": "0.0.0"
}

Should solve the issue, although a fix to the module should be made. It should either check if a version is specified or it uses a default version.

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

No branches or pull requests

1 participant