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

    Run dev error while running a new project.

    CLI
    12
    25
    1775
    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.
    • M
      marcelo.delta last edited by marcelo.delta

      I’m trying to generate a build with the beta. more it generates errors.

      I did the step by step in the documentation.

      Am I doing something wrong?

      npm install -g @quasar/cli
      cd app-mobile
      quasar dev

      $ quasar dev
      
       Dev mode.......... spa
       Pkg quasar........ v1.0.0-beta.18
       Pkg @quasar/app... v1.0.0-beta.19
       Debugging......... enabled
      
       app:quasar-conf Reading quasar.conf.js +0ms
       app:dev Checking listening address availability (0.0.0.0:8080)... +9ms
       app:webpack Extending SPA Webpack config +560ms
       app:generator Generating Webpack entry point +15ms
       app:dev-server Booting up... +5ms
      
      
        SPA █████████████████████████ [100%] in ~1s
      
      
      
       ERROR  Failed to compile with 1 errors                                                                                     01:46:47
      
       error  in ./.quasar/client-entry.js
      
      Module build failed (from ./node_modules/babel-loader/lib/index.js):
        Error: Cannot find module '@babel/preset-stage-2' from '/Users/marcelo/Projeto/app-mobile'
        
        - sync.js:58 Function.module.exports [as sync]
          [app-mobile]/[resolve]/lib/sync.js:58:15
        
        - plugins.js:101 resolveStandardizedName
          [app-mobile]/[@babel]/core/lib/config/files/plugins.js:101:31
        
        - plugins.js:58 resolvePreset
          [app-mobile]/[@babel]/core/lib/config/files/plugins.js:58:10
        
        - plugins.js:77 loadPreset
          [app-mobile]/[@babel]/core/lib/config/files/plugins.js:77:20
        
        - config-descriptors.js:154 createDescriptor
          [app-mobile]/[@babel]/core/lib/config/config-descriptors.js:154:9
        
        - config-descriptors.js:109 items.map
          [app-mobile]/[@babel]/core/lib/config/config-descriptors.js:109:50
        
        - Array.map
        
        - config-descriptors.js:109 createDescriptors
          [app-mobile]/[@babel]/core/lib/config/config-descriptors.js:109:29
        
        - config-descriptors.js:101 createPresetDescriptors
          [app-mobile]/[@babel]/core/lib/config/config-descriptors.js:101:10
        
        - config-descriptors.js:47 presets
          [app-mobile]/[@babel]/core/lib/config/config-descriptors.js:47:19
        
      
      
       @ multi (webpack)-dev-server/client?http://0.0.0.0:8080 (webpack)/hot/dev-server.js ./.quasar/client-entry.js
      
      1 Reply Last reply Reply Quote 0
      • sibelly
        sibelly last edited by

        I’m using the pwa mode normally in the last version… by the console error:
        Error: Cannot find module 'Error: Cannot find module '@babel/preset-stage-2' from '/Users/marcelo/Pro/app-mobile-cfc'' from '/Users/marcelo/Pro/app-mobile-cfc'
        Did you confirmed if the @babel/preset-stage-2 is in your package.json ?

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

          Your deps are messed up or you don’t use .babel.config.js. You should not have @babel/preset-stage-2 or equivalent in your deps as this comes with @quasar/app.

          1 Reply Last reply Reply Quote 0
          • M
            marcelo.delta last edited by

            The @quasar/app comes with npm install -g @ quasar/cli?

            1 Reply Last reply Reply Quote 0
            • M
              marcelo.delta last edited by

              Does Not Work

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

                “The @quasar/app comes with npm install -g @ quasar/cli?” --> No… please join our Discord server. You’re doing something wrong and it will be faster to determine what it is.

                1 Reply Last reply Reply Quote 0
                • M
                  marcelo.delta last edited by

                  I’m doing this. A new project.

                  And it does not work.

                  What am I supposed to be doing wrong.

                  Is something more necessary?

                  npm install -g @quasar/cli
                  quasar create app-mobile -b dev
                  cd app-mobile
                  quasar dev

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

                    @marcelo-delta if you could contact me right away on Discord we’ll sort this out faster.

                    thiwankaSL 1 Reply Last reply Reply Quote 0
                    • M
                      marcosvalens last edited by marcosvalens

                      I have the same problem. I can start the proyect with quasar dev. But when I import some components like QAvatar or QCard I have the same problem. I have an upgraded version of Babel but still not working

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

                        run

                        rm .babelrc
                        

                        will fix this error

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

                          Hi @marcelo-delta I’m having the same issue, did you find a solution ?

                          I am just following the docs to set up a new project but quasar dev results in Unknown command “dev”.

                          Using quasar v1, node 8.9.4, npm 6.10.1

                          tlloyduk 1 Reply Last reply Reply Quote 0
                          • tlloyduk
                            tlloyduk @tlloyduk last edited by

                            @tlloyduk reinstalling quasar and selecting the Yarn option during quasar create sorted this out for me. Seems it doesn’t like npm yet 🙂

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

                              After removing quasar cli, and installing @ qualsar / cli I get:

                              dd07d6c4-2aa4-4ce9-8784-d7ed4e250eb3-image.png

                              40e446e9-4ee6-41c5-a26b-334bbe299401-image.png

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

                                The solution was to install the latest version of node 10.16.1 LTS, reinstalled the CLI and everything started to work correctly.

                                1 Reply Last reply Reply Quote 1
                                • thiwankaSL
                                  thiwankaSL last edited by

                                  I have same problem
                                  Windows 10
                                  Node js Version v12.18.4 * 64 bit

                                  last time i remove my node module and re-install node module. but still inproblem

                                  1 Reply Last reply Reply Quote 0
                                  • thiwankaSL
                                    thiwankaSL @rstoenescu last edited by

                                    @rstoenescu can i take some help ?

                                    metalsadman 1 Reply Last reply Reply Quote 0
                                    • metalsadman
                                      metalsadman @thiwankaSL last edited by

                                      @thiwankaSL use yarn for local deps as suggested.

                                      thiwankaSL 2 Replies Last reply Reply Quote 0
                                      • thiwankaSL
                                        thiwankaSL @metalsadman last edited by

                                        @metalsadman can explain

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

                                          what is the reason for this case? installed windows 10 last Night and after installation i clone project from git repository and npm install and quasar cli also install globally . after faced this issue . what is the reason and how i resolve this error . let me know .

                                          dobbel 1 Reply Last reply Reply Quote 0
                                          • dobbel
                                            dobbel @thiwankaSL last edited by

                                            @thiwankaSL

                                            You are not following the advice of @metalsadman: using yarn for project dependencies. Don’t expect people to help you when you ignore their posts.

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