一、问题
事情发生在重装微信小程序开发者工具后。。。微信小程序编译后白屏,控制台报错:
The resource http://127.0.0.1:33157/appservice/__dev__/WAServiceMainContext.js?t=wechat&s=1655999659876&v=2.24.6 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
二、解决
对比之前开发工具的设置,发现不知何时手残多打了一个勾:使用独立域进行调试
去掉后,正常了。。。文章来源:https://www.toymoban.com/news/detail-719633.html
白屏挺常见的,原因也是千奇百怪,此解决方法仅限此原因。。。文章来源地址https://www.toymoban.com/news/detail-719633.html
到了这里,关于【已解决】微信小程序编译后白屏(The resource was preloaded using link preload but not used within a few seconds ...)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!