quasarframework / quasar

Quasar Framework - Build high-performance VueJS user interfaces in record time
https://quasar.dev
MIT License
25.73k stars 3.49k forks source link

Quasar CLI 2.0 + Quasar/app-webpack 3.7.0 => Build Error: Cannot find module 'loader-utils/lib/stringifyRequest' #15280

Closed gowy222 closed 1 year ago

gowy222 commented 1 year ago

What happened?

"dependencies": { "@quasar/extras": "^1.15.9", "@vueuse/core": "^9.10.0", "axios": "^1.2.2", "core-js": "^3.27.1", "echarts": "^5.4.1", "file-saver": "^2.0.5", "material-icons": "^1.13.1", "naive-ui": "^2.34.3", "pinia": "^2.0.29", "quasar": "^2.11.5", "vue": "^3.2.45", "vue-echarts": "^6.5.1", "vue-router": "^4.1.6" }, "devDependencies": { "@arco-design/web-vue": "^2.42.0", "@quasar/app-webpack": "^3.7.0", "babel-plugin-import": "^1.13.6", "babel-plugin-transform-remove-console": "^6.9.4", "uglify-js": "^3.17.4", "unplugin-auto-import": "^0.12.1", "unplugin-vue-components": "^0.22.12" },

================================== quasar.config.js = > build = >uglifyOptions: { compress: {

      drop_debugger: true, 
      dead_code: true,
      drop_console: true,

    },

}

quasar b

Err:

` App • Chaining "UI" Webpack config App • Cleaned build artifact: "D:\mycode\quasar_oms\oms\dist\spa" App • WAIT • Compiling of "UI" in progress... App • DONE • "UI" compiled with errors • 8003ms

App • ERROR • UI in ./src/App.vue

Error: Cannot find module 'loader-utils/lib/stringifyRequest' Require stack:

Error: Cannot find module 'loader-utils/lib/stringifyRequest' Require stack:

What did you expect to happen?

no err

Reproduction URL

nop

How to reproduce?

just mins ago!

quasar upgrade -i (PNPM)

npm install @quasar/cli -g

quasar b

then err.. after 98%

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)

Platforms/Browsers

Chrome

Quasar info output

No response

Relevant log output

No response

Additional context

No response

github-actions[bot] commented 1 year ago

Hi @gowy222! 👋

It looks like you provided an invalid or unsupported reproduction URL. Do not use any service other than Codepen, jsFiddle, StackBlitz, Codesandbox, and GitHub. Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc. Please edit your original post above and provide a valid reproduction URL as explained.

Without a proper reproduction, your issue will have to get closed.

Thank you for your collaboration. 👏

gowy222 commented 1 year ago

node -v =>v16.14.0

rstoenescu commented 1 year ago

Hi,

Thanks for reporting. For some reason, this isn't a problem with Yarn so missed the wrong loader-utils reference.

Fixed (and released) in q/app-webpack 3.7.1