Open iAmCorey opened 1 year ago
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
👋 @iAmCorey,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
无法复现,可以的话请提供示例代码仓库
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