j***@126.com
j***@126.com
  • 发布:2024-07-09 11:57
  • 更新:2024-10-18 15:11
  • 阅读:396

Windows在符号链接的文件夹下创建项目导致运行报错,关键字:keepAliveInclude,Unknown custom element,'id' of undefined

分类:uni-app

创建项目为官方提供的Demo

可能出现的bug如下

Web运行:

index.js:1127 Uncaught   
ReferenceError: uni is not defined
Property or method "keepAliveInclude" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.  

Unknown custom element: <App> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

微信小程序运行:

ERROR TypeError: Cannot read property 'id' of undefined

如遇到上述错误提示信息,请检查项目路径是否包含符号链接文件夹,如果有该情况或类似情况,可将项目移动至无符号链接的文件夹中,可正常运行

0 关注 分享

要回复文章请先登录注册

前端萌新很菜

前端萌新很菜

[Vue warn]: Property or method "keepAliveInclude" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
Unknown custom element: <App> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
(found in at App.vue)
大佬能帮我看下这是什么导致的吗?测试环境报这个 ,本地正常,uat正常
2024-10-18 15:11