antvis / antvis/antvis.github.io

monorepo 下 regeneratorRuntime_js 导出报错 is not a function

未关闭
#173 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
500
派生
52
PR 合并指标
30 天内没有已合并 PR

描述

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

![https://github.com/antvis/antvis.github.io/assets/107376855/883fb309-c2c2-4a52-9cd3-6b2ece9f4907](https://github.com/antvis/antvis.github.io/assets/107376855/883fb309-c2c2-4a52-9cd3-6b2ece9f4907)

贡献指南

这个仓库没有索引到贡献指南

调研方向

通过开发模式下的 dumi demo 导入 package 以复现错误,然后检查包含 @umijs/babel-preset-umi 和 babel-runtime/helpers/regeneratorRuntime.js 的生成模块路径。完成的标准是开发 demo 不再抛出 regeneratorRuntime_js is not a function 错误,同时报告的生产环境行为不受影响。

由索引模型根据 Issue 内容生成。

评估

技术栈
babel, webpack
领域
build-system
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。