antvis / antvis/antvis.github.io
monorepo 下 regeneratorRuntime_js 导出报错 is not a function
- Dominant language
- TypeScript
- Stars
- 500
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
monorepo 中,开发模式下使用 dumi demo 引入包后(生成环境不存在该问题),报错如下:
TypeError: ...node_modules_umijs_babel_preset_umi_node_modules_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0_ is not a function

Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the error by importing the package through the dumi demo in development mode, then inspect the generated module path containing @umijs/babel-preset-umi and babel-runtime/helpers/regeneratorRuntime.js. Done means the development demo no longer throws the regeneratorRuntime_js is not a function error while the reported production behavior remains unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, webpack
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100