[WeChat applet] Added a custom component reference or reported an error

For example, after adding a custom component in the WeChat developer tool group-list, and then using it on the page, after clicking recompile, an error is reported.

The error message output in the Console is as follows:

Component is not found in path "components/group-list/group-list" (using by "pages/page1/page1")

In the corresponding page1 page, there is a reference to this component,

<group-list list="{
     
     {newslist}}" title="最近上传"></group-list>

In page1.jsonthe configuration file, the content is as follows

{
    
    
    "usingComponents": {
    
    
        "group-list":"/components/group-list/group-list"
    }
}

It looks fine, so where is the problem?

Finally, I found that it would be fine to clear the compilation cache of the WeChat development tool, and then recompile.
insert image description here

There is a problem when I use it. I don’t know why. Try to clear the cache and it will be better.

If it still doesn't work, restart your computer...

If it doesn’t work, restart it. Why are many problems solved after the computer is restarted?
" Law of Entropy Increase "

Please add a picture description

Guess you like

Origin blog.csdn.net/zs1028/article/details/130952402