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

antd-mobile从v2升级到v5之后 yarn start报错 提示./node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js Module parse failed: Unexpected token (306:11) You may need an appropriate loader to handle this file type. #5720

Closed
zhuiyings opened this issue Oct 11, 2022 · 6 comments
Labels
pending Need more information to continue

Comments

@zhuiyings
Copy link

zhuiyings commented Oct 11, 2022

Version of antd-mobile

5.24.0

Operating system and its version

Android

Browser and its version

antd-mobile 版本 5.24.0
antd-mobile-v2 版本 2.3.4

Sandbox to reproduce

No response

What happened?

No response
image

Relevant log output

No response

@zhuiyings zhuiyings added the bug label Oct 11, 2022
@zhuiyings zhuiyings changed the title antd-mobile从v2升级到v5只有yarn start报错 提示./node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js Module parse failed: Unexpected token (306:11) You may need an appropriate loader to handle this file type. antd-mobile从v2升级到v5之后 yarn start报错 提示./node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js Module parse failed: Unexpected token (306:11) You may need an appropriate loader to handle this file type. Oct 11, 2022
@miracles1919
Copy link
Contributor

可以将你的项目打个 zip 发到这里,帮你排查一下

@miracles1919 miracles1919 added the pending Need more information to continue label Oct 12, 2022
@github-actions
Copy link
Contributor

Hi, liuyafeis.

It seems that this issue is a bit vague and lacks some necessary information. It is recommended to read How To Ask Questions The Smart Way.

看起来这条 issue 描述得有些模糊,缺少一些必要的信息,推荐阅读一下提问指引

@miracles1919 miracles1919 removed the bug label Oct 12, 2022
@afc163
Copy link
Member

afc163 commented Oct 12, 2022

原来 pending 标签是做这个用的。

@zhuiyings
Copy link
Author

可以将你的项目打个 zip 发到这里,帮你排查一下

切到"antd-mobile": "5.4.0"版本正常运行了,只要"5.5.0"及之上版本就不行,肯定是这个版本出了问题

@miracles1919
Copy link
Contributor

检查下 bable-loader 的 test 配置是否命中了 .mjs,感觉是这个问题

等有复现包了再帮你排查,这个 issue 我先关了

@WEIXii
Copy link

WEIXii commented Aug 4, 2023

你好,我也遇到了找个问题,请问找到解决方法了吗?

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

No branches or pull requests

4 participants