app.json file content error] app.json: ["usingComp<van-icon name="https://b.yzcdn.cn/vant/icon-demo-1126.png" />

After using @vant/weapp to install and configure, an error is reported.
If the code copied from the official website is pasted directly according to his format: as follows,
insert image description here
you may be prompted that the folder package cannot be found,
insert image description here
insert image description here

Solution: go to miniprogram_npm to find its absolute path to configure

My modification case:
insert image description here
it came out
insert image description here

Guess you like

Origin blog.csdn.net/hyqhyqhyqq/article/details/129712934