You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added prochat and i get the following build error
➜ admin git:(base) ✗ npm run build
>[email protected] build
> tsc && refine build
vite v4.5.5 building for production...
transforming...
✓ 8409 modules transformed.
✓ built in 7.00s
"toRegExp" is not exported by "node_modules/oniguruma-to-es/dist/index.min.js", imported by "node_modules/@shikijs/engine-javascript/dist/index.mjs".
file: /Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/@shikijs/engine-javascript/dist/index.mjs:1:9
1: import { toRegExp } from 'oniguruma-to-es';
^
2:
3: var __defProp = Object.defineProperty;
error during build:
RollupError: "toRegExp" is not exported by "node_modules/oniguruma-to-es/dist/index.min.js", imported by "node_modules/@shikijs/engine-javascript/dist/index.mjs".
at error (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:2287:30)
at Module.error (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:13745:16)
at Module.traceVariable (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:14175:29)
at ModuleScope.findVariable (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:12615:39)
at FunctionScope.findVariable (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:7124:38)
at ChildScope.findVariable (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:7124:38)
at Identifier.bind (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:8319:40)
at CallExpression.bind (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:5892:23)
at CallExpression.bind (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:9890:15)
at ReturnStatement.bind (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:5892:23)
I dont understand how it can be fixed so im asking for your help
when i remove pro-chat everything is ok
the intresting part that it runs in dev mode but fails on build
➜ admin git:(base) ✗ npm run build
>[email protected] build
> tsc && refine build
vite v4.5.5 building for production...
transforming...
✓ 8409 modules transformed.
✓ built in 7.00s
"toRegExp" is not exported by "node_modules/oniguruma-to-es/dist/index.min.js", imported by "node_modules/@shikijs/engine-javascript/dist/index.mjs".
file: /Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/@shikijs/engine-javascript/dist/index.mjs:1:9
1: import { toRegExp } from 'oniguruma-to-es';
^
2:
3: var __defProp = Object.defineProperty;
error during build:
RollupError: "toRegExp" is not exported by "node_modules/oniguruma-to-es/dist/index.min.js", imported by "node_modules/@shikijs/engine-javascript/dist/index.mjs".
at error (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:2287:30)
at Module.error (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:13745:16)
at Module.traceVariable (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:14175:29)
at ModuleScope.findVariable (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:12615:39)
at FunctionScope.findVariable (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:7124:38)
at ChildScope.findVariable (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:7124:38)
at Identifier.bind (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:8319:40)
at CallExpression.bind (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:5892:23)
at CallExpression.bind (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:9890:15)
at ReturnStatement.bind (file:///Users/danlutsevich/Desktop/apps/autobot/admin/node_modules/rollup/dist/es/shared/node-entry.js:5892:23)
Hello guys
I use Refine with antd template
I've added prochat and i get the following build error
I dont understand how it can be fixed so im asking for your help
when i remove pro-chat everything is ok
the intresting part that it runs in dev mode but fails on build
Chinese translation
我使用 Refine 和 antd 模板
我添加了 prochat 后,出现了以下构建错误:
我不明白如何解决这个问题,所以在这里寻求帮助。 当我移除 pro-chat 时,一切正常。 有趣的是,开发模式可以运行,但构建时失败。
The text was updated successfully, but these errors were encountered: