Quasar: Unable to build with fresh install of quasar

Created on 1 Nov 2018  路  1Comment  路  Source: quasarframework/quasar

Software version


Quasar: 0.17.20
OS: Win 10
Node: v10.13.0
NPM: 6.4.1
Browsers: N/A
iOS: N/A
Android: N/A
Any other software related to your bug:
Yarn:1.12.1

What did you get as the error?

I tried to just build the base app (i made no edit to the code from the pre generated app)
i get the following error

位 quasar build

 Build mode........ spa
 Quasar theme...... mat
 Quasar CLI........ v0.17.20
 Quasar Framework.. v0.17.17
 Debugging......... no

 app:quasar-conf Reading quasar.conf.js +0ms
 app:webpack Extending SPA Webpack config +4s
 app:artifacts Cleaned build artifact: "D:\...\imgalt\dist\spa-mat" +9ms
 app:generator Generating Webpack entry point +37ms
 app:build Building... +33ms
(node:5564) UnhandledPromiseRejectionWarning:   WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration obj  ect that does not match the API schema.
   - configuration.output.path: The provided value "D:\\...\\imgalt\\dist\\spa-mat" contans exclamation mark
   (!) which is not allowed because it's reserved for loader syntax.
     -> The output directory as **absolute path** (required).

  - webpack.js:24 webpack
    [imgalt]/[webpack]/lib/webpack.js:24:9

  - quasar-build:135 build
    [imgalt]/[quasar-cli]/bin/quasar-build:135:3

  - next_tick.js:68 process._tickCallback
    internal/process/next_tick.js:68:7

  - loader.js:744 Function.Module.runMain
    internal/modules/cjs/loader.js:744:11

  - node.js:285 startup
    internal/bootstrap/node.js:285:19

  - node.js:739 bootstrapNodeJSCore
    internal/bootstrap/node.js:739:3


(node:5564) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:5564) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
### What were you expecting?

I also get an error when trying to build dev. it MIGHT be related

These dependencies were not found:

* D:\...\imgalt\node_modules\webpack-dev-server\client\index.js?http://0.0.0.0:8080 in multi (webpack)-dev-server/client?http://0.0.0.0:8080 (webpack)/hot/dev-server.js ./.quasar/client-entry.js
* D:\...\imgalt\node_modules\webpack\hot\dev-server.js in multi (webpack)-dev-server/client?http://0.0.0.0:8080 (webpack)/hot/dev-server.js ./.quasar/client-entry.js
* D:\...\.quasar\client-entry.js in multi (webpack)-dev-server/client?http://0.0.0.0:8080 (webpack)/hot/dev-server.js ./.quasar/client-entry.js

To install them, you can run: npm install --save D:\...\imgalt\node_modules\webpack-dev-server\client\index.js?http://0.0.0.0:8080 D:\...\imgalt\node_modules\webpack\hot\dev-server.js D:\...\imgalt\.quasar\client-entry.js

What steps did you take, to get the error?

using a fresh install following this guide https://quasar-framework.org/guide/index.html
i just updated my NPM, Node, and yarn to latest versions today.
i cleared node cache
i deleted both global and project local node_modules

Most helpful comment

Hi,

Does the path to your project contains any exclamation mark as indicated? Webpack does not support that.

>All comments

Hi,

Does the path to your project contains any exclamation mark as indicated? Webpack does not support that.

Was this page helpful?
0 / 5 - 0 ratings