Mini Program custom components of the path error is how to return?

clipboard.png

clipboard.png

/components/bgImage/bgImage

clipboard.png

/pages/index/index

clipboard.png

this is an error. I really don"t understand where I didn"t write correctly.

usingComponents I also configured


solved because there must be a Component ({}) function in the component's js file, similar to Page ({}). If not, an error will be reported, even if the path is right.


I have mine too. Why did I report an error?

Menu