Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用HBuilderx新建的项目运行报错 #77

Open
xuehang1 opened this issue Nov 23, 2022 · 2 comments
Open

使用HBuilderx新建的项目运行报错 #77

xuehang1 opened this issue Nov 23, 2022 · 2 comments

Comments

@xuehang1
Copy link

xuehang1 commented Nov 23, 2022

uni-app新手,使用HBuilderx工具新建的项目无法正常运行,浏览器中报错:
“chunk-vendors.js:1768 [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. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.”
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

(found in at R:/Cloud/Documents/HBuilderProjects/hello/App.vue)

但是使用vue-cli新增的项目就可以运行,请问这是什么原因呢?工具中一直提示“项目未关联uniCloud服务空间,请调整后重新运行uni-app项目”。但实际已经创建过服务空间。
烦请各位前辈解惑

@hbcui1984
Copy link
Contributor

在uniCloud目录上,右键关联服务空间。

@xuehang1
Copy link
Author

在uniCloud目录上,右键关联服务空间。

非常感谢您的解答。根据您的回复进行相关操作,目前我的项目中uniCloud目录右侧显示了关联的阿里云目录。但是运行浏览器端还是会报错,以下信息:
chunk-vendors.js:1768 [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. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

(found in at R:/Cloud/Documents/HBuilderProjects/hello/App.vue)
warn @ chunk-vendors.js:1768
chunk-vendors.js:1768 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

(found in at R:/Cloud/Documents/HBuilderProjects/hello/App.vue)
请问是还需要在DCloud的uniCloud的菜单下做哪些配置么?非常期待您的解答。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants