Run dev error while running a new project.



  • 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
    


  • 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 ?


  • Admin

    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.



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



  • Does Not Work


  • Admin

    “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.



  • 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


  • Admin

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



  • 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


Log in to reply