Tencent / wepy

小程序组件化开发框架
https://wepyjs.gitee.io/wepy-docs/
Other
22.55k stars 3.05k forks source link

导入样式框架Tdesign-miniprogram不能resolve #2844

Closed Asher-Ding closed 1 year ago

Asher-Ding commented 1 year ago

Description

在使用wepy过程中,试图导入腾讯的tdesign npm框架,提示resolve错误。通过修改路径导入成功后,运行时提示找不到对应的文件。

Environment

Reproduce

[如何重现问题]

[How to reproduce the issue]

Observed Results

[实际表现]

[Observed Results]

Expected Results

[期望表现]

[Expected Results]

Relevant Code / Logs

index.wpy


    ...
    "navigationBarTitleText": 'WePY 2.0 Feature Demo',
    "usingComponents": {
      "slide-view": "module:miniprogram-slide-view",
      "t-button": "module:tdesign-miniprogram",
    }
   ...
 ```
kpsanmao commented 1 year ago

babel版本的问题,参考https://www.02405.com/archives/12043