Skip to content

Commit

Permalink
fix: dashboard loading forever
Browse files Browse the repository at this point in the history
Ref browserify/node-util#57 (comment)

Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny authored and backportbot-nextcloud[bot] committed Mar 6, 2023
1 parent 536a316 commit 3a730cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"node-forge": "^1.3.1",
"p-limit": "^4.0.0",
"printscout": "2.0.3",
"process": "^0.11.10",
"ramda": "^0.28.0",
"raw-loader": "^4.0.2",
"stream-browserify": "^3.0.0",
Expand Down
7 changes: 7 additions & 0 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const CKEditorWebpackPlugin = require('@ckeditor/ckeditor5-dev-webpack-plugin')
const { styles } = require('@ckeditor/ckeditor5-dev-utils')
const { VueLoaderPlugin } = require('vue-loader')
const BabelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except')
const { ProvidePlugin } = require('webpack')

function getPostCssConfig(ckEditorOpts) {
// CKEditor is not compatbile with postcss@8 and postcss-loader@4 despite stating so.
Expand All @@ -18,6 +19,12 @@ const plugins = [
language: 'en',
}),
new VueLoaderPlugin(),
new ProvidePlugin({
// 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',
}),
]

module.exports = {
Expand Down

0 comments on commit 3a730cb

Please sign in to comment.