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

[build] npm run build 报错 #1138

Closed
PNP-cpp opened this issue Oct 23, 2023 · 5 comments
Closed

[build] npm run build 报错 #1138

PNP-cpp opened this issue Oct 23, 2023 · 5 comments
Labels
question Further information is requested

Comments

@PNP-cpp
Copy link

PNP-cpp commented Oct 23, 2023

tdesign-mobile-vue 版本

dev

重现链接

No response

重现步骤

npm run build
src//*.ts, src//.vue, !src//demos, !src//.d.ts, !src/**/tests, !src/index-lib.ts → es/...
[!] Error: Could not resolve './style/css.js' from src/action-sheet/style/index.js

期望结果

No response

实际结果

No response

框架版本

3.2

浏览器版本

8.2

系统版本

No response

Node版本

No response

补充说明

npm run build
src//*.ts, src//.vue, !src//demos, !src//.d.ts, !src/**/tests, !src/index-lib.ts → es/...
[!] Error: Could not resolve './style/css.js' from src/action-sheet/style/index.js

@github-actions
Copy link
Contributor

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

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 23, 2023

@wencongNew 理论是没问题的,我们这边一直能打包发版本。 请问你是直接拉的仓库代码吗? 确认npm run dev没问题,单独npm run build 有问题?需要说明的一点是,我们的样式文件在子仓库,首次运行需要初始化子仓库。

git submodule init && git submodule update

@anlyyao anlyyao added the question Further information is requested label Oct 23, 2023
@PNP-cpp
Copy link
Author

PNP-cpp commented Oct 24, 2023

image
已经初始化子仓库了
@anlyyao

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 25, 2023

@wencongNew 你仓库地址是?

@PNP-cpp PNP-cpp closed this as completed Nov 1, 2023
@mengyaqian
Copy link

请问执行build报错这个是怎么解决的,我有同样的问题

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

No branches or pull requests

3 participants