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

[MenuContent]打包报错 #783

Closed
china-chaim opened this issue Nov 4, 2024 · 9 comments
Closed

[MenuContent]打包报错 #783

china-chaim opened this issue Nov 4, 2024 · 9 comments
Assignees
Labels
Need More Info The problem is not clearly described

Comments

@china-chaim
Copy link

tdesign-vue-next-starter 版本

0.10.0

重现链接

No response

重现步骤

通过脚手架拉取的后台代码,编译没有报错信息,也没有安装过其他包。执行npm run build 打包报错。前端路由只保留一个登录跟仪表盘,其余都是由接口下发,idea的编辑器显示代码错误,文件:src/layouts/components/MenuContent.vue,与新的拉取代码比较没有改动
screenshot-20241104-170437
20241104-171246

screenshot-20241104-171449

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

windows11

Node版本

20.17.0

补充说明

No response

Copy link
Contributor

github-actions bot commented Nov 4, 2024

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

Copy link
Contributor

github-actions bot commented Nov 4, 2024

♥️ 有劳 @timi137137 @liweijie0812 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @china-chaim

@timi137137
Copy link
Collaborator

image
能输出一下当前所有包的版本吗,看起来是TS语言服务器炸了

@timi137137 timi137137 added the Need More Info The problem is not clearly described label Nov 4, 2024
@china-chaim
Copy link
Author

@china-chaim
Copy link
Author

8月通过脚手架拉取的代码,只执行过更新命令,现在是最新的包文件。路由文件只有两个,类型是hash模式,
screenshot-20241104-174206
screenshot-20241104-174158

@china-chaim
Copy link
Author

把node_modules文件夹删除后重新拉去后报错信息
1
2

@china-chaim
Copy link
Author

新安装后打包报错完整文件,编译没任何问题
build-error.log

@timi137137
Copy link
Collaborator

这个报错明显是 本地的tsconfig.json缺失了,他不应该出现任何有关node_modules相关(我看见你没删改了个名报错是肯定的)
image

@china-chaim
Copy link
Author

名字是在报错信息复制下来之后再改的,本地tsconfig.json只加了"allowJs": true,以及更改noImplicitAny,其他没有更改过。找不到问题的也可以等你们新的版本脚手架拉取后可以直接打包,我再把代码转移过去
233

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Need More Info The problem is not clearly described
Projects
None yet
Development

No branches or pull requests

3 participants