在使用
flutter build web --no-sound-null-safety
打包flutter到web端时报错:_flutter is not defined
![](https://img.haomeiwen.com/i8917320/3770585300e3fd3d.png)
这边的解决办法有一个是将build/web下的index.html中的
<base href="/">
改成
<base href="./">
就可以了。
![](https://img.haomeiwen.com/i8917320/58596fbc38548a32.png)
在使用
flutter build web --no-sound-null-safety
打包flutter到web端时报错:_flutter is not defined
这边的解决办法有一个是将build/web下的index.html中的
<base href="/">
改成
<base href="./">
就可以了。
本文标题:flutter打包web端提示_flutter is not d
本文链接:https://www.haomeiwen.com/subject/xmfoldtx.html
网友评论