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

[Steps 步骤条] 文档中的引入报错 #2377

Open
iAmCorey opened this issue Sep 25, 2023 · 2 comments
Open

[Steps 步骤条] 文档中的引入报错 #2377

iAmCorey opened this issue Sep 25, 2023 · 2 comments
Labels
question This is a question, not a bug

Comments

@iAmCorey
Copy link

tdesign-miniprogram 版本

9/19/2023, 4:25:04 PM

重现链接

"usingComponents": { "t-steps": "tdesign-miniprogram/steps/steps", "t-step-item": "tdesign-miniprogram/step-item/step-item", }

重现步骤

文档中的引入是
"usingComponents": { "t-steps": "tdesign-miniprogram/steps/steps", "t-step-item": "tdesign-miniprogram/step-item/step-item", }

但是npm构建出来的tdesign-miniprogram目录下只有/steps/,没有/step-item/.
编译报错:
[ pages/settings/settings.json 文件内容错误] pages/settings/settings.json: ["usingComponents"]["t-step-item"]: "tdesign-miniprogram/step-item/step-item",在 /Users/corey/Github/moyu/minipro/pages/settings/tdesign-miniprogram/step-item/step-item
/Users/corey/Github/moyu/minipro/pages/settings/tdesign-miniprogram/step-item/step-item/index
/Users/corey/Github/moyu/minipro/pages/settings/miniprogram_npm/tdesign-miniprogram/step-item/step-item
/Users/corey/Github/moyu/minipro/pages/settings/miniprogram_npm/tdesign-miniprogram/step-item/step-item/index
/Users/corey/Github/moyu/minipro/pages/miniprogram_npm/tdesign-miniprogram/step-item/step-item
/Users/corey/Github/moyu/minipro/pages/miniprogram_npm/tdesign-miniprogram/step-item/step-item/index
/Users/corey/Github/moyu/minipro/miniprogram_npm/tdesign-miniprogram/step-item/step-item
/Users/corey/Github/moyu/minipro/miniprogram_npm/tdesign-miniprogram/step-item/step-item/index 路径下未找到组件(env: macOS,mp,1.06.2308291; lib: 2.11.3)

期望结果

编译成功

实际结果

编译失败
[ pages/settings/settings.json 文件内容错误] pages/settings/settings.json: ["usingComponents"]["t-step-item"]: "tdesign-miniprogram/step-item/step-item",在 /Users/corey/Github/moyu/minipro/pages/settings/tdesign-miniprogram/step-item/step-item
/Users/corey/Github/moyu/minipro/pages/settings/tdesign-miniprogram/step-item/step-item/index
/Users/corey/Github/moyu/minipro/pages/settings/miniprogram_npm/tdesign-miniprogram/step-item/step-item
/Users/corey/Github/moyu/minipro/pages/settings/miniprogram_npm/tdesign-miniprogram/step-item/step-item/index
/Users/corey/Github/moyu/minipro/pages/miniprogram_npm/tdesign-miniprogram/step-item/step-item
/Users/corey/Github/moyu/minipro/pages/miniprogram_npm/tdesign-miniprogram/step-item/step-item/index
/Users/corey/Github/moyu/minipro/miniprogram_npm/tdesign-miniprogram/step-item/step-item
/Users/corey/Github/moyu/minipro/miniprogram_npm/tdesign-miniprogram/step-item/step-item/index 路径下未找到组件(env: macOS,mp,1.06.2308291; lib: 2.11.3)

基础库版本

2.11.3

补充说明

No response

@github-actions
Copy link
Contributor

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

@betavs
Copy link
Collaborator

betavs commented Sep 26, 2023

无法复现,可以的话请提供示例代码仓库

@betavs betavs added the question This is a question, not a bug label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants