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

lodash-es不兼容 #3507

Closed
mark980828 opened this issue Feb 27, 2025 · 3 comments
Closed

lodash-es不兼容 #3507

mark980828 opened this issue Feb 27, 2025 · 3 comments
Labels
to be published fixed, not be published

Comments

@mark980828
Copy link

tdesign-vue 版本

1.11.0-naruto

重现链接

https://stackblitz.com/edit/nuxt-starter-d36kxpjw?file=plugins%2FTdesign.js

重现步骤

No response

期望结果

No response

实际结果

No response

框架版本

Vue(2.7.16)

浏览器版本

Chrome(133.0.0.0)

系统版本

No response

Node版本

18.20.6

补充说明

Nuxt2中最小示例,npm run dev启动即报错

Copy link
Contributor

👋 @mark980828,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@mark980828
Copy link
Author

require() of ES Module F:\DevFile\MyProject\nuxt\v2-250216\node_modules\lodash-es\lodash.js from F:\DevFile\MyProject\nuxt\v2-250216\node_modules\tdesign-vue\cjs\loading\directive.js not supported. Instead change the require of lodash.js in F:\DevFile\MyProject\nuxt\v2-250216\node_modules\tdesign-vue\cjs\loading\directive.js to a dynamic import() which is available in all CommonJS modules.

@uyarn uyarn mentioned this issue Feb 28, 2025
16 tasks
@uyarn uyarn added the to be published fixed, not be published label Mar 5, 2025
@uyarn
Copy link
Collaborator

uyarn commented Mar 7, 2025

fixed 1.11.1

@uyarn uyarn closed this as completed Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

2 participants