引入vant组件库,构建npm完成,并勾选使用npm,使用时小程序页面空白?

小程序 文章 2022-03-01 10:40 417 0 全屏看文

AI助手支持GPT4.0

引入vant组件库,构建npm完成,并勾选使用npm,使用时小程序页面空白?Introduce the vant component library, build npm, and check the use of npm, the applet page is blank when using it?

引入vant组件库,构建npm完成,并勾选使用npm,使用时小程序页面空白?

引入vant组件库1.10.2,构建npm完成,并勾选使用npm,在page模块得index.json文件中usingComponents里面引入组件,导致开发工具中页面空白,但是真机预览得时候 又能看到页面,怎么解决?


Introduce vant component library 1.10.2, complete the construction of NPM, check the use of NPM, and get the index in the page module The introduction of components into usingcomponents in JSON file leads to blank pages in the development tool, but the page can be seen when the real machine is previewed. How to solve this problem?

回答:

dreamhunter:

清理缓存,重开开发工具试试

brave:

控制台没报错的话,点一下调试微信开发者工具,看看报错信息

社交恐怖分z:

开lazyloadcomponent了吗

善静善动:这个是干啥的?没用过。

-EOF-

AI助手支持GPT4.0