Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Leak in PWA Mode Due to Deprecated Dependencies #17764

Open
kevinmnm opened this issue Jan 16, 2025 · 0 comments
Open

Memory Leak in PWA Mode Due to Deprecated Dependencies #17764

kevinmnm opened this issue Jan 16, 2025 · 0 comments
Labels

Comments

@kevinmnm
Copy link

What happened?

I'm using SSR + PWA mode.

Running npm install in Quasar project with PWA enabled renders this warning message:

$ npm install
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead

The major concern is the [email protected] which leaks memory.

I also previously saw build (npm run build) failure with memory leak related error message, which is fixed now but I suspect the [email protected] could be one of the cause.

What did you expect to happen?

No warning message especially about memory leak.

Reproduction URL

https://stackblitz.com/edit/quasarframework-stackblitz-templates-ealpqwif?file=package.json

How to reproduce?

  1. Create new project using Quasar CLI command npm init quasar@latest.
  2. Enable PWA in quasar.config.ts file pwa: true.
  3. Delete node_modules and package-lock.json file rm -rf node_modules package-lock.json.
  4. Run npm install

Flavour

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

Areas

PWA Mode, SSR Mode, Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)

Platforms/Browsers

No response

Quasar info output

Operating System - Windows_NT(10.0.22631) - win32/x64
NodeJs - 20.17.0

Global packages
  NPM - 10.8.2
  yarn - Not installed
  pnpm - Not installed
  bun - Not installed
  @quasar/cli - 2.4.1
  @quasar/icongenie - 4.0.0
  cordova - Not installed

Important local packages
  quasar - 2.17.6 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-vite - 2.0.7 -- Quasar Framework App CLI with Vite
  @quasar/extras - 1.16.15 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.5.13 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.5.0
  pinia - 2.3.0 -- Intuitive, type safe and flexible Store for Vue
  vite - 6.0.7 -- Native-ESM powered web dev build tool
  vite-plugin-checker - Not installed
  eslint - 9.18.0 -- An AST-based pattern checker for JavaScript.
  esbuild - 0.24.2 -- An extremely fast JavaScript and CSS bundler and minifier.
  typescript - 5.5.4 -- TypeScript is a language for application scale JavaScript development
  workbox-build - 7.3.0 -- A module that integrates into your build process, helping you generate a manifest of local files that workbox-sw should precache.
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  electron - Not installed
  @electron/packager - Not installed
  electron-builder - Not installed
  @capacitor/core - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Relevant log output

$ npm install
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead

Additional context

No response

@kevinmnm kevinmnm added kind/bug 🐞 Qv2 🔝 Quasar v2 issues labels Jan 16, 2025
@github-actions github-actions bot added area/cli bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite mode/pwa mode/ssr labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant