收藏
回答

uniapp开发的小程序,H5端正常,小程序页面打开的部分页面报错wx://not-found ?

{

  "navigationBarTitleText": "考场列表",

  "navigationStyle": "custom",

  "usingComponents": {

    "uv-notice-bar": "../../uni_modules/uv-notice-bar/components/uv-notice-bar/uv-notice-bar",

    "uv-divider": "../../uni_modules/uv-divider/components/uv-divider/uv-divider",

    "uv-icon": "../../uni_modules/uv-icon/components/uv-icon/uv-icon",

    "uv-textarea": "../../uni_modules/uv-textarea/components/uv-textarea/uv-textarea",

    "uv-button": "../../uni_modules/uv-button/components/uv-button/uv-button",

    "uv-popup": "../../uni_modules/uv-popup/components/uv-popup/uv-popup",

    "exam-card": "../../components/examCard",

    "layout": "../../components/Layout"

  }

} 可以看到页面有路径,开发者工具里目录也是正常的:

修改过绝对路径、也用过@/的方式直接页面报错说找不到组件;不清楚为什么会有这个提醒。之前提醒过:引用的组件找不到目录,现在直接是:wx://

最后一次编辑于  03-21
回答关注问题邀请回答
收藏

1 个回答

  • 萧白
    萧白
    03-24

    已解决!我使用了es6的懒加载动态引入方式导致该问题;小程序不支持。

    03-24
    有用
    回复
登录 后发表内容