monorepo 下 regeneratorRuntime_js 导出报错 is not a function

Open
#173 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
babel, webpack
Domain
build-system

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.

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

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

Dominant language
TypeScript
Stars
501
Forks
52
Avg merge
8h 49m
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from antvis/antvis.github.io

All issues in antvis/antvis.github.io

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.