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
-
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:
https://docs.monaca.io/en/monaca_cli/samples/vue_onsen/Method 1:
I followed a cached version of that link:
https://webcache.googleusercontent.com/search?q=cache:6gAqUN11KSkJ:https://docs.monaca.io/en/monaca_cli/samples/vue_onsen/+&cd=1&hl=nl&ct=clnk&gl=nlAnd 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:
monaca transpile
…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?
Method 2:
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?
-
@Bassie Please refer to my reply in this thread.