Subscribe on changes!

Invalid flags supplied to RegExp constructor 'gs'

avatar
May 15th 2023

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

avatar
May 16th 2023

Can you provide a repo that reproduces the problem?🧐

avatar
May 22nd 2023

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.

avatar
May 23rd 2023

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?