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

    quasar configured for scss, error on build

    Useful Tips (NEW)
    build
    1
    1
    169
    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.
    • A
      asonis last edited by

      Hi Everyone,

      I’m working for a company, and we are using quasar. I downloaded the latest version on quasar and I’m getting the following errors on the build

      1st
      Schermata 2021-01-08 alle 15.38.27.png

      2nd
      Schermata 2021-01-08 alle 15.39.49.png

      the error comes out from a build on a docker environment (node:12.14.1)
      what seems strange to me is that the complain is about the app.styl and the app.scss.

      Then after different attempts, I found a solution on the extendWebpack.

      // https://quasar.dev/quasar-cli/handling-webpack
            extendWebpack (cfg) {
              cfg.module.rules.push({
                enforce: 'pre',
                test: /\.(js|vue)$/,
                loader: 'eslint-loader',
                exclude: /node_modules/
              });
              cfg.module.rules.push({
                test: /\.scss$/,
                loader: 'sass-loader',
                exclude: /node_modules/
              });
            },
      

      I have only a question: if we not specify a sass-loader (9.0.2) on the package.json, the build will fail?

      Thanks a lot
      Antonio

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