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

5.30 以后,会报一个错误 #6671

Closed
smithyj opened this issue Jul 10, 2024 · 2 comments
Closed

5.30 以后,会报一个错误 #6671

smithyj opened this issue Jul 10, 2024 · 2 comments

Comments

@smithyj
Copy link

smithyj commented Jul 10, 2024

Version of antd-mobile

5.37.1

Operating system and its version

iOS, Android, Others

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

调用了 TextArea 组件,然后页面会报错,错误如下:
45.js:425 Uncaught (in promise)
TypeError: (0 , _runes.default) is not a function

跟踪到里面了,发现是由于 runes 换成了 runes2 导致的问题,runes2 这个包esm产物没有正确的 export default

const valueLength = runes(value).length

Relevant log output

No response

@bluelovers
Copy link

bluelovers commented Jul 11, 2024

@smithyj
Copy link
Author

smithyj commented Aug 28, 2024

解决了,项目中 webpack 不支持 mjs 产物

@smithyj smithyj closed this as completed Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants