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

🧐[问题] ios打开syntaxError: Invalid regular expression: invalid group specifier name #321

Open
qq382724935 opened this issue Sep 25, 2024 · 0 comments

Comments

@qq382724935
Copy link

🧐 问题描述

使用umi新建的项目,集成了proChat,pc端使用正常,在手机端报错,syntaxError: Invalid regular expression: invalid group specifier name。手机端尝试了谷歌浏览器、微信、钉钉中打开,都是相同错误。

SyntaxError: Invalid regular expression: invalid group specifier name
./node_modules/regex/dist/regex.mjs
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:343315:24
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/oniguruma-to-js/dist/shared/oniguruma-to-js.2969e22d.mjs
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:339565:82
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/oniguruma-to-js/dist/index.mjs
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:339455:113
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/@shikijs/engine-javascript/dist/index.mjs
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:281018:92
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/@shikijs/core/dist/index.mjs
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:279081:103
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/shiki/dist/bundle-web.mjs
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:344267:90
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/@ant-design/pro-editor/es/Highlight/hooks/useShiki.js
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:64088:93
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/@ant-design/pro-editor/es/Highlight/components/HighLighter/index.js
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:63837:92
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/@ant-design/pro-editor/es/Snippet/index.js
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:66447:110
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/@ant-design/pro-editor/es/Markdown/CodeBlock.js
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:66121:78
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/@ant-design/pro-editor/es/Markdown/index.js
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:66200:87
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/@ant-design/pro-chat/es/MessageModal/index.js
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:58691:99
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/@ant-design/pro-chat/es/EditableMessage/index.js
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:57829:90
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/@ant-design/pro-chat/es/ChatItem/components/MessageContent.js
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:56928:93
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/@ant-design/pro-chat/es/ChatItem/index.js
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:57051:103
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/@ant-design/pro-chat/es/index.js
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:63012:86
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
./node_modules/.cache/mfsu/mf-va_@ant-design_pro-chat.js
http://10.96.8.74:8000/mf-dep____vendor.625dbecf.js:884:174
webpack_require
http://10.96.8.74:8000/mf-va_remoteEntry.js:740:46
(anonymous function)
webpack:/webpack/runtime/remotes loading:1397
1394 | var onFactory = function(factory) {
1395 | data.p = 1;
1396 | webpack_require.m[id] = function(module) {

1397 | module.exports = factory();
| ^ 1398 | }
1399 | };
1400 | handleFunction(webpack_require, data[2], 0, 0, onExternal, 1);
View compiled
(anonymous function)
webpack:/webpack/runtime/react refresh:6
3 | options.factory = function (moduleObject, moduleExports, webpackRequire) {
4 | webpack_require.$Refresh$.setup(options.id);
5 | try {
6 | originalFactory.call(this, moduleObject, moduleExports, webpackRequire);
| ^ 7 | } finally {
8 | if (typeof Promise !== 'undefined' && moduleObject.exports instanceof Promise) {
9 | options.module.exports = options.module.exports.then(
View compiled
webpack_require
./webpack/bootstrap:24
21 | var execOptions = { id: moduleId, module: module, factory: webpack_modules[moduleId], require: webpack_require };
22 | webpack_require.i.forEach(function(handler) { handler(execOptions); });
23 | module = execOptions.module;
24 | execOptions.factory.call(module.exports, module, module.exports, execOptions.require);
| ^ 25 | } catch(e) {
26 | module.error = e;
27 | throw e;
View compiled
▼ 3 stack frames were expanded.
fn
webpack:/webpack/runtime/hot module replacement:62
./src/pages/antProChat/index.tsx
http://10.96.8.74:8000/p__antProChat__index.async.js:17:99
(anonymous function)
webpack:/webpack/runtime/react refresh:6
▲ 3 stack frames were expanded.
webpack_require
./webpack/bootstrap:24
21 | var execOptions = { id: moduleId, module: module, factory: webpack_modules[moduleId], require: webpack_require };
22 | webpack_require.i.forEach(function(handler) { handler(execOptions); });
23 | module = execOptions.module;
24 | execOptions.factory.call(module.exports, module, module.exports, execOptions.require);
| ^ 25 | } catch(e) {
26 | module.error = e;
27 | throw e;
View compiled
fn
webpack:/webpack/runtime/hot module replacement:62
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error. Click the 'X' or hit ESC to dismiss this message.

💻 示例代码

https://github.com/qq382724935/prochat.git

🚑 其他信息

手机:ios 14
ios系统版本:16.1.2

1
2
3
4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant