Skip to content

Commit 3a730cb

Browse files
st3inybackportbot-nextcloud[bot]
authored andcommitted
fix: dashboard loading forever
Ref browserify/node-util#57 (comment) Signed-off-by: Richard Steinmetz <[email protected]>
1 parent 536a316 commit 3a730cb

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

package-lock.json

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"node-forge": "^1.3.1",
6868
"p-limit": "^4.0.0",
6969
"printscout": "2.0.3",
70+
"process": "^0.11.10",
7071
"ramda": "^0.28.0",
7172
"raw-loader": "^4.0.2",
7273
"stream-browserify": "^3.0.0",

webpack.common.js

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const CKEditorWebpackPlugin = require('@ckeditor/ckeditor5-dev-webpack-plugin')
33
const { styles } = require('@ckeditor/ckeditor5-dev-utils')
44
const { VueLoaderPlugin } = require('vue-loader')
55
const BabelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except')
6+
const { ProvidePlugin } = require('webpack')
67

78
function getPostCssConfig(ckEditorOpts) {
89
// CKEditor is not compatbile with postcss@8 and postcss-loader@4 despite stating so.
@@ -18,6 +19,12 @@ const plugins = [
1819
language: 'en',
1920
}),
2021
new VueLoaderPlugin(),
22+
new ProvidePlugin({
23+
// Make a global `process` variable that points to the `process` package,
24+
// because the `util` package expects there to be a global variable named `process`.
25+
// Thanks to https://stackoverflow.com/a/65018686/14239942
26+
process: 'process/browser.js',
27+
}),
2128
]
2229

2330
module.exports = {

0 commit comments

Comments
 (0)