Vue template help needed
Bassie last edited by Bassie
I want to try Vue.js with Monaca/OnsenUI.
But I’m having trouble getting the correct template created with Monaca CLI or Vue CLI.
Many Vue related Monaca-docs give me a 404 error, I only see React instructions in the current docs.
For example this url:
I followed a cached version of that link:
And did this (in NodeJS/Monaca CLI):
npm install -g vue-cli vue init OnsenUI/vue-cordova-webpack projectName cd projectName npm install monaca upload
I then get a (very) blank project in the Cloud IDE, without any Vue-files or OnsenUI.
If I first do:
…and then upload to the IDE, I get a working project with Vue.
But that has minified code, so is unusable to modify.
What am I doing wrong?
I also tried:
monaca create projectName --template onsenui-v2-vue-splitter
…but then I get:
Downloading template... www/components already exists. Skipping. Installing template dependencies... Error occurred while creating project: Failed to install template dependencies.
Am I doing something wrong? Is there a way to see what dependencies I’m missing?