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=nl

    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:

    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?


  • Monaca

    @Bassie Please refer to my reply in this thread.


Log in to reply