question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

q/app npm v7 compilation issue

See original GitHub issue

Hi! I found error. I created quasar v2 project step by step from quasar v2 docs Then “cd myproject” run command “quasar dev” wait for running Error message

Dev mode… spa Pkg quasar… v2.0.0-beta.15 Pkg @quasar/app… v3.0.0-beta.20 Pkg webpack… v5 Debugging… enabled

Configured browser support (>= 87.68% of global marketshare): · Chrome for Android >= 90 · Firefox for Android >= 87 · Android >= 90 · Chrome >= 80 · Edge >= 87 · Firefox >= 79 · iOS >= 11.0-11.2 · Opera >= 71 · Safari >= 11.1

App • ⚠️ ️️Setting port to closest one available: 8081

App • Chaining “UI” Webpack config App • WAIT • Compiling of “UI” in progress… (node:3581) UnhandledPromiseRejectionWarning: TypeError: The ‘compilation’ argument must be an instance of Compilation

  • NormalModule.js:181 Function.getCompilationHooks [qs-v2-2]/[webpack]/lib/NormalModule.js:181:10

  • pluginWebpack5.js:37 [qs-v2-2]/[vue-loader]/dist/pluginWebpack5.js:37:26

  • Hook.js:14 Hook.CALL_DELEGATE [as _call] [qs-v2-2]/[tapable]/lib/Hook.js:14:14

  • Compiler.js:1017 Compiler.newCompilation [qs-v2-2]/[app]/[webpack]/lib/Compiler.js:1017:26

  • Compiler.js:1059 [qs-v2-2]/[app]/[webpack]/lib/Compiler.js:1059:29

  • Hook.js:18 Hook.CALL_ASYNC_DELEGATE [as _callAsync] [qs-v2-2]/[tapable]/lib/Hook.js:18:14

  • Compiler.js:1054 Compiler.compile [qs-v2-2]/[app]/[webpack]/lib/Compiler.js:1054:28

  • Watching.js:134 [qs-v2-2]/[app]/[webpack]/lib/Watching.js:134:19

(Use node --trace-warnings ... to show where the warning was created) (node:3581) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:3581) [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.

Screen Shot 2564-05-06 at 08 06 09 Screen Shot 2564-05-06 at 08 06 19

Thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
rstoenescucommented, May 9, 2021

Pushed a workaround for an issue in npm v7. Available in “@quasar/app” v3.0.0-beta.21 (just released it now).

1reaction
rstoenescucommented, May 6, 2021

Hi All,

Best practice (and sorry for the caps): ALWAYS READ THE RELEASE NOTES (especially while we’re on beta).

I specifically wrote that you might need to delete node_modules and yarn.lock/package-lock.json files because of NPM/Yarn not correctly updating its cache. This is not a Quasar issue and you DON’T need to create a new project to port your current one over.

You’re not forced to use Yarn, but from our own experience over the years, it manages the dependencies far better, which is why we recommend it. At the end of the day, NPM and Yarn are just tools to help you install the necessary packages being used by your app. Does a package manager really matter more than your productivity and your app’s features?

It really saddens me to read about these problems caused by external tools and Quasar getting the hammer for them.

Please report back if deleting node_modules AND yarn.lock/package-lock.json THEN yarn/npm installing does not fixes the problem for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm 7 is now generally available! - The GitHub Blog
After much anticipation, the npm CLI version 7 is now generally available! In addition to new features and some breaking changes, ...
Read more >
Node.js Sass version 7.0.0 is incompatible with ^4.0.0 || ^5.0.0
If you want to use SCSS and Sass in your React app, try to do as below and your files will be correctly...
Read more >
npm-start - npm Docs
This runs a predefined command specified in the "start" property of a package's "scripts" object. If the "scripts" object does not define a...
Read more >
Firebase JavaScript SDK Release Notes - Google
Fixed issue where clients using Node.js v18 would use the native Blob object, ... affect TypeScript compilation for users of the app-check-compat package....
Read more >
Babel CLI
Babel comes with a built-in CLI which can be used to compile files from the ... Other than npx, you can also drop...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found