Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid flags supplied to RegExp constructor 'gs' #8316

Closed
ducaiwei opened this issue May 15, 2023 · 3 comments
Closed

Invalid flags supplied to RegExp constructor 'gs' #8316

ducaiwei opened this issue May 15, 2023 · 3 comments

Comments

@ducaiwei
Copy link

Vue version

3.3.2

Link to minimal reproduction

1

Steps to reproduce

webpack5+vue3 template, we run npm run dev on android6.0 webview
image
this is my package.json
{
"name": "activity-h5",
"version": "1.0.0",
"main": "index.js",
"author": "",
"license": "",
"scripts": {
"dev": "cross-env envMode=dev webpack serve --config ./build/webpack.dev.conf.js",
"build:production": "cross-env envMode=prodution webpack --config build/webpack.prod.conf.js",
"build:dev": "cross-env envMode=dev webpack --config build/webpack.prod.conf.js",
"build:test": "cross-env envMode=test webpack --config build/webpack.prod.conf.js",
"build:pre": "cross-env envMode=pre webpack --config build/webpack.prod.conf.js"
},
"devDependencies": {
"@babel/core": "^7.13.16",
"@babel/preset-env": "^7.13.15",
"@vue/compiler-sfc": "^3.0.11",
"@webpack-cli/serve": "^2.0.1",
"autoprefixer": "9.8.6",
"babel-loader": "^8.2.2",
"babel-plugin-import": "^1.13.3",
"copy-webpack-plugin": "^8.1.1",
"cross-env": "^7.0.3",
"css-loader": "^5.2.4",
"css-minimizer-webpack-plugin": "^2.0.0",
"dotenv": "^10.0.0",
"friendly-errors-webpack-plugin": "^1.7.0",
"html-webpack-plugin": "^5.3.1",
"less": "^4.1.1",
"less-loader": "^10.0.0",
"mini-css-extract-plugin": "^1.5.1",
"postcss-loader": "^6.1.0",
"postcss-pxtorem": "^6.0.0",
"style-loader": "^2.0.0",
"ts-loader": "^9.4.2",
"typescript": "^5.0.2",
"vue-loader": "^16.2.0",
"vue-template-compiler": "^2.6.12",
"webpack": "^5.43",
"webpack-bundle-analyzer": "^4.4.1",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.0.0-beta.3",
"webpack-merge": "^5.7.3"
},
"dependencies": {
"amfe-flexible": "^2.2.1",
"axios": "^0.21.1",
"core-js": "^3.11.0",
"pinia": "^2.0.33",
"vconsole": "^3.7.0",
"vue": "^3.3.2",
"vue-router": "4",
"weixin-webview-jssdk": "^0.0.2"
},
"browserslist": [
"> 0.1%",
"last 2 versions"
]
}

What is expected?

expected run success

What is actually happening?

image

System Info

android6.0 webview

Any additional comments?

No response

@baiwusanyu-c
Copy link
Member

Can you provide a repo that reproduces the problem?🧐

@MajedMuhammad
Copy link

I have noticed this bug in the prior few releases:
screenshot-console-1

Then, I updated Vue to the latest v3.3.4.
The issue has been resolved, but it causes other issues:
Firefox 71:
screenshot-console-3
Firefox 72:
screenshot-console-2

So, I would like to re-open this issue as it's the root issue of those.

@baiwusanyu-c
Copy link
Member

I have noticed this bug in the prior few releases: screenshot-console-1

Then, I updated Vue to the latest v3.3.4. The issue has been resolved, but it causes other issues: Firefox 71: screenshot-console-3 Firefox 72: screenshot-console-2

So, I would like to re-open this issue as it's the root issue of those.

I think this is caused by your browser version is too low, have you polyfilled the code?

@github-actions github-actions bot locked and limited conversation to collaborators Sep 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants