diff --git a/package-lock.json b/package-lock.json index 50022016c3b..5183b5a8129 100644 --- a/package-lock.json +++ b/package-lock.json @@ -63,6 +63,7 @@ "p-queue": "^7.4.1", "path": "^0.12.7", "pinia": "^2.3.1", + "process": "^0.11.10", "query-string": "^9.0.0", "regenerator-runtime": "^0.14.1", "select2": "3.5.1", diff --git a/package.json b/package.json index 6575379fdf5..77f62f9ab56 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,7 @@ "p-queue": "^7.4.1", "path": "^0.12.7", "pinia": "^2.3.1", + "process": "^0.11.10", "query-string": "^9.0.0", "regenerator-runtime": "^0.14.1", "select2": "3.5.1", diff --git a/webpack.common.js b/webpack.common.js index aacc37af821..c7826b380b3 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -173,6 +173,11 @@ module.exports = { // break if two separate versions of the library are used (e.g. bundled one // and global one). ICAL: 'ical.js', + + // Make a global `process` variable that points to the `process` package, + // because the `util` package expects there to be a global variable named `process`. + // Thanks to https://stackoverflow.com/a/65018686/14239942 + process: 'process/browser.js' }), new WorkboxPlugin.GenerateSW({