Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
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?