We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用了 https://replit.com/@moudy/codemirror6-test 里的代码,但在 dumi 里 npm start 时会报错,但 npm run build 不会报错。
npm start
npm run build
.fatherrc.ts 的配置是:
.fatherrc.ts
export default { esm: 'rollup', // cjs: 'rollup', runtimeHelpers: true, };
可复现 repo:https://github.com/a1ooha/react-codemirror
在项目里直接 wepback 打包上面的代码是正常的,所以代码应该没问题。
compile 过程报错:
The text was updated successfully, but these errors were encountered:
在项目里直接 wepback 打包上面的代码是正常的
找一下项目的 webpack 配置,大概率要额外挂某些 babel 插件,或者 babel-loader 的配置和 Umi 默认的不一样,可以 chainWebpack 修改
Sorry, something went wrong.
是 @babel/preset-env 里的 @babel/plugin-proposal-unicode-property-regex 的 bug, babel/babel#13815
直接使用 umi 打包也是正常的
@a1ooha 怎么解决呢?我也遇到了这个问题
No branches or pull requests
Versions
Steps to reproduce
使用了 https://replit.com/@moudy/codemirror6-test 里的代码,但在 dumi 里
npm start
时会报错,但npm run build
不会报错。.fatherrc.ts
的配置是:可复现 repo:https://github.com/a1ooha/react-codemirror
What is Expected?
在项目里直接 wepback 打包上面的代码是正常的,所以代码应该没问题。
What is actually happening?
compile 过程报错:
The text was updated successfully, but these errors were encountered: