Skip to content
New issue

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

regeneratorRuntime is not defined #193

Closed
crazyair opened this issue Feb 7, 2020 · 10 comments
Closed

regeneratorRuntime is not defined #193

crazyair opened this issue Feb 7, 2020 · 10 comments
Assignees

Comments

@crazyair
Copy link

crazyair commented Feb 7, 2020

具体问题在
ant-design/ant-design#21262

我也不清楚到底是哪里的问题。

@PeachScript
Copy link
Member

@crazyair 启用 runtimeHelpers 了吗

@crazyair
Copy link
Author

crazyair commented Feb 7, 2020

没有启用

@PeachScript
Copy link
Member

可以启用试试看,这个配置会把 helper 方法变成从 babel/runtime 中引入

@crazyair
Copy link
Author

crazyair commented Feb 7, 2020

改用 father-doc 了,这个嫌弃了。。。

@PeachScript
Copy link
Member

哈,欢迎切换到 father-doc,但这个是 father doc 命令出的问题吗?我理解应该是 father build 构建出的包不对?

@crazyair
Copy link
Author

crazyair commented Feb 8, 2020

https://codesandbox.io/s/father-antd-demo-evrt1

这个是加了 runtime 的 0.0.4 版本,还报错

@PeachScript
Copy link
Member

话说这个 issue 和 antd 的 issue 的关联是?我在 demo 中只看到了 getInputClassName 的错误

@PeachScript PeachScript reopened this Feb 13, 2020
@crazyair
Copy link
Author

两个问题,现在是页面直接报错,之前开 issue 的时候是 input 文本框改变值的时候报 regeneratorRuntime,这里都有说

@PeachScript
Copy link
Member

了解了,regeneratorRuntimie 是 rc-input 抛出来的,后来配置上 runtimeHelpers 这个重新打包发版问题没有了,目前还剩下 getInputClassName 这个,那这边就先关闭了

@nicolo-ribaudo
Copy link

Hi! We just found a problem which might be the same as this one: dvajs/dva#2493 It looks like the runtimeHelpers option is always ignored when compiling to CJS, so regeneratorRuntime is not defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants