一、問題
事情發(fā)生在重裝微信小程序開發(fā)者工具后。。。微信小程序編譯后白屏,控制臺報錯:
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.
二、解決
對比之前開發(fā)工具的設置,發(fā)現(xiàn)不知何時手殘多打了一個勾:使用獨立域進行調(diào)試
去掉后,正常了。。。文章來源:http://www.zghlxwxcb.cn/news/detail-719633.html
白屏挺常見的,原因也是千奇百怪,此解決方法僅限此原因。。。文章來源地址http://www.zghlxwxcb.cn/news/detail-719633.html
到了這里,關于【已解決】微信小程序編譯后白屏(The resource was preloaded using link preload but not used within a few seconds ...)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!