小程序报错:VM6275 WAService.js:2 SystemError (jsEnginScriptError) Component is not found in path “compone

本文主要讲述uni-app写的代码,定义组件后app正常显示,小程序报错的问题。报错信息为组件未找到,解决方法包括重启微信小程序服务,若不行,用vue开发可在page.json配置文件中添加相关内容,用js开发则在组件目录xxx.json文件中添加'component': true。

问题

uni-app写的一套代码,定义组件之后,app正常显示,小程序报错。

解决小程序报错:VM6275 WAService.js:2 SystemError (jsEnginScriptError)
Component is not found in path “components/goods_list/goods_list” (using by “pages/goods/goods”)
Error: Component is not found in path “components/goods_list/goods_list” (using by “pages/goods/goods”)

解决

1.检查问题: 定义组件Components之后出现的报错
2. 先重启一下微信小程序的服务,(代码重新运行,微信开发者工具重新编译)一般情况这种错误是没刷新加载过来。
3. 重启不行的话,用vue开发的话在*page.json配置文件中加上
在这里插入图片描述
4. 如果使用js开发的话直接在组件目录下面的xxx.json文件中添加"component": true 即可

2025-03-18 10:11:00.811 WARN 46736 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/C:/Users/19242/.m2/itsp-repository/org/springframework/boot/spring-boot-autoconfigure/2.7.12/spring-boot-autoconfigure-2.7.12.jar!/org/springframework/boot/autoconfigure/r2dbc/ConnectionFactoryConfigurations$PoolConfiguration.class]; nested exception is java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.r2dbc.ConnectionFactoryConfigurations$PoolConfiguration due to io/r2dbc/spi/ValidationDepth not found. Make sure your own configuration does not rely on that class. This can also happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake) 2025-03-18 10:11:00.814 INFO 46736 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2025-03-18 10:11:00.828 ERROR 46736 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/C:/Users/19242/.m2/itsp-repository/org/springframework/boot/spring-boot-autoconfigure/2.7.12/spring-boot-autoconfigure-2.7.12.jar!/org/springframework/boot/autoconfigure/r2dbc/ConnectionFactoryConfigurations$PoolConfiguration.class]; nested exception is java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.r2dbc.ConnectionFactoryConfigurations$PoolConfiguration due to io/r2dbc/spi/ValidationDepth not found. Make sure your own configuration does not rely on that class. This can also happen if you are @Compone怎么解
最新发布
03-19
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

BRYTLEVSON

打赏的都是天使,创作的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值