Project scenario:
In a small program, if you want to use an external ui component library, you need to build an npm package. This is necessary and cannot be omitted.
If it is not built, an error similar to this will appear:
Cause Analysis:
The npm package build is not done correctly.
solution:
The old version can be found in the local settings. If the new version cannot be found, it can be found in the tool:
After clicking:
the address can be followed by the tutorial given on the official website, such as button:
"usingComponents": {
"van-button": "@vant/weapp/button/index"
},
It can be rendered normally: