From bcce29e7e25b4a1b4832c477ced509aada5e4a27 Mon Sep 17 00:00:00 2001 From: Yusuf Kandemir Date: Mon, 30 Sep 2024 19:40:16 +0300 Subject: [PATCH] fix(app-vite): pin workbox-build to 7.0.x instead of ^7.0.0, see https://github.com/GoogleChrome/workbox/issues/3357 --- app-vite/lib/modes/pwa/pwa-installation.js | 4 +++- app-vite/package.json | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app-vite/lib/modes/pwa/pwa-installation.js b/app-vite/lib/modes/pwa/pwa-installation.js index a29f9148d03..006ad2eaab1 100644 --- a/app-vite/lib/modes/pwa/pwa-installation.js +++ b/app-vite/lib/modes/pwa/pwa-installation.js @@ -7,7 +7,9 @@ const nodePackager = require('../../helpers/node-packager') const hasTypescript = require('../../helpers/has-typescript') const { hasEslint } = require('../../helpers/has-eslint') -const defaultVersion = '^7.0.0' +// https://github.com/GoogleChrome/workbox/issues/3357 +// 7.0.0 is the only current working version, but using 7.0.x in hopes of future updates +const defaultVersion = '7.0.x' const pwaDeps = { 'workbox-core': defaultVersion, diff --git a/app-vite/package.json b/app-vite/package.json index 9b1fef65d55..a005dd518c5 100644 --- a/app-vite/package.json +++ b/app-vite/package.json @@ -96,7 +96,7 @@ "vue": "^3.0.0", "vue-router": "^4.0.0", "vuex": "^4.0.0", - "workbox-build": "^7.0.0" + "workbox-build": "7.0.x" }, "peerDependencies": { "@electron/packager": ">= 18", @@ -108,7 +108,7 @@ "vue": "^3.2.29", "vue-router": "^4.0.12", "vuex": "^4.0.0", - "workbox-build": ">= 6" + "workbox-build": "^6 || 7.0.x" }, "peerDependenciesMeta": { "electron-builder": {