No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Restore from git

    Help
    4
    6
    2509
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      NT last edited by NT

      Hi,

      I’ve created quasar app, added cordova, built, run on Android emulator and push to git.

      On another PC I clone my repo, execute ‘npm i’, ‘quasar dev -m cordova -T android’ and get the following error:
      UnhandledPromiseRejectionWarning: CordovaError: Current working directory is not a Cordova-based project.
      I tried to go to src-cordova folder and run ‘cordova prepare’ but get the same error.

      Then I tried to perform ‘quasar mode -a cordova’, but get error:
      app:mode-cordova Cordova support detected already. Aborting.

      So I had to run ‘quasar mode -r cordova’ and ‘quasar mode -a cordova’ after that quasar was able to build the project, but this workaround clears my config.xml, so this is not a solution for me.

      What I’m doing wrong?
      Please, help!

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        Did you run “npm install” inside of /src-cordova which is a Cordova project folder on itself?

        N 1 Reply Last reply Reply Quote 1
        • N
          NT @rstoenescu last edited by

          @rstoenescu thanks for quick response!

          I’ve just tried you solution but still get ‘CordovaError: Current working directory is not a Cordova-based project.’ when run ‘quasar dev -m cordova -T android’.

          1 Reply Last reply Reply Quote 0
          • A
            aznric3boi91 last edited by

            @NT Did you finnd a solution? I’m getting the same error.

            1 Reply Last reply Reply Quote 0
            • nothingismagick
              nothingismagick last edited by nothingismagick

              You need to be careful when you remove a mode in quasar, because it will automatically remove assets that it generated for you via quasar-cli. I know this doesn’t really address the issue, but a temporary workaround might be something like this (in your CWD):

              $ cp -r src-cordova src-cordova-bak
              $ quasar mode -r cordova
              $ quasar mode -a cordova
              $ mv src-cordova-bak src-cordova
              
              1 Reply Last reply Reply Quote 0
              • rstoenescu
                rstoenescu Admin last edited by

                @NT just create an empty “www” folder in your /src-cordova folder. The Cordova CLI looks for it in order to determine if the folder is a Cordova project or not.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post