Skip to content

Commit 455c823

Browse files
fixed "process not found" error
1 parent 15f2896 commit 455c823

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

package-lock.json

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
"eslint-config-prettier": "^8.1.0",
6969
"eslint-plugin-vue": "^9.0.0",
7070
"license-webpack-plugin": "^4.0.2",
71-
"prettier": "^2.5.1"
71+
"prettier": "^2.5.1",
72+
"process": "^0.11.10"
7273
},
7374
"browserslist": [
7475
"last 10 Chrome versions",

quasar.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
const { configure } = require("quasar/wrappers");
1616
const { readFileSync } = require("fs");
1717
const path = require("path");
18+
const { ProvidePlugin } = require("webpack");
1819
const { LicenseWebpackPlugin } = require("license-webpack-plugin");
1920

2021
const env = require("dotenv").config({
@@ -195,6 +196,9 @@ module.exports = configure(function (ctx) {
195196
}
196197

197198
config.plugins = (config.plugins || []).concat([
199+
new ProvidePlugin({
200+
process: "process/browser",
201+
}),
198202
new LicenseWebpackPlugin({
199203
outputFilename: "oss-licenses.json",
200204
perChunkOutput: false,

0 commit comments

Comments
 (0)