一、问题
事情发生在重装微信小程序开发者工具后。。。微信小程序编译后白屏,控制台报错:
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.
二、解决
对比之前开发工具的设置,发现不知何时手残多打了一个勾:使用独立域进行调试
去掉后,正常了。。。
白屏挺常见的,原因也是千奇百怪,此解决方法仅限此原因。。。