g***@163.com
g***@163.com
  • 发布:2024-02-28 11:03
  • 更新:2024-02-28 16:10
  • 阅读:49

uniapp 开发抖音短剧使用ttcomponents创建自定义组件,编译后报错Component not found

分类:uni-app

抖音开发者工具报错信息
tma-core.js:2 [TMA] Component my-player:/ttcomponents/myPlayer/index not found in pages/drama/drama
更改的文件目录

pages.json中添加
{
"path": "pages/drama/drama",
"style": {
"navigationStyle": "default",
"backgroundColor": "#000002",
"app-plus": {
"background": "#000002"
},

    "usingComponents": {  
      "my-player": "/ttcomponents/myPlayer/index"  
    }  

  }  
},
2024-02-28 11:03 负责人:无 分享
已邀请:
YUANRJ

YUANRJ

请提供下测试工程

要回复问题请先登录注册