From 6ef9b7cd0c9129ca5a53f30ef51812622ad3d459 Mon Sep 17 00:00:00 2001 From: Vidal Ortega <43078681+vidorteg@users.noreply.github.com> Date: Tue, 19 Mar 2024 23:16:46 -0700 Subject: [PATCH] Fix: Fixing error Declaration emit for this file requires using private name 'Context' (#5752) Fixing "...emit for this file requires using private name 'Context'", caused by the inclusion of VM polyfill. Switching it off instead. --- packages/utils-worker/package.json | 1 - packages/utils-worker/webpack.config.js | 2 +- yarn.lock | 5 ----- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/utils-worker/package.json b/packages/utils-worker/package.json index 1559da1128f..76a9cfdcc24 100644 --- a/packages/utils-worker/package.json +++ b/packages/utils-worker/package.json @@ -74,7 +74,6 @@ "terser-webpack-plugin": "^5.3.6", "typescript": "^4.5.5", "util.promisify": "^1.1.1", - "vm-browserify": "1.1.2", "webpack": "^5.76.0", "webpack-cli": "^4.9.1" }, diff --git a/packages/utils-worker/webpack.config.js b/packages/utils-worker/webpack.config.js index cf7664235d2..dc0d021330f 100644 --- a/packages/utils-worker/webpack.config.js +++ b/packages/utils-worker/webpack.config.js @@ -46,7 +46,7 @@ module.exports = (env) => { path: 'path-browserify', setImmediate: 'setimmediate', stream: 'stream-browserify', - vm: 'vm-browserify' + vm: false } } }; diff --git a/yarn.lock b/yarn.lock index 9b59264dce5..89fe1b1007f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11580,11 +11580,6 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -vm-browserify@1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0" - integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ== - vm2@^3.9.3: version "3.9.19" resolved "https://registry.yarnpkg.com/vm2/-/vm2-3.9.19.tgz#be1e1d7a106122c6c492b4d51c2e8b93d3ed6a4a"