What is the different between two way to install webpack?



  • Dear guys, I tried to init quasar project with following command
    quasar init default#webpack1 quasar2nd
    but shows error as follow:

    pm WARN quasar-framework@0.14.7 requires a peer of quasar-extras@0.x but none is installed. You must install peer dependencies yourself.
    npm WARN karma-sinon-chai@1.3.3 requires a peer of sinon@^2.1.0 || ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.

    When I run the quasar dev it compiles without any error or warning.
    But the browser just comes with white blank screen and in Chrome dev tool I found an error as below:

    caught SyntaxError: Unexpected token export
    at Object.<anonymous> (app.js:648)
    at webpack_require (app.js:556)
    at fn (app.js:87)
    at eval (eval at <anonymous> (app.js:672), <anonymous>:7:15)
    at Object.<anonymous> (app.js:672)
    at webpack_require (app.js:556)
    at fn (app.js:87)
    at Object.<anonymous> (app.js:587)
    at webpack_require (app.js:556)
    at app.js:579

    After that I tried to init with default template and npm webpack separately, it works well…

    Why it comes error ?
    What is the different between “init with webpack” and install separately?


Log in to reply
 

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.