After Flutter 3.0 update fluttertoast library start showing this error TypeError: Cannot read properties of null (reading 'exports')

huangapple go评论65阅读模式
英文:

After Flutter 3.0 update fluttertoast library start showing this error TypeError: Cannot read properties of null (reading 'exports')

问题

把 Flutter 升级到最新的稳定渠道后,fluttertoast库开始显示此错误,当我调用showToast方法时,它显示以下错误:

TypeError: 无法读取 null 的属性(读取 'exports')
assets/packages/fluttertoast/assets/toastify.js 14:48
assets/packages/fluttertoast/assets/toastify.js 14:90
ReferenceError: Toastify 未定义

英文:

After upgrading flutter to latest stable channel fluttertoast library start showing this error and when i call methode showToast it show below error

TypeError: Cannot read properties of null (reading 'exports')

assets/packages/fluttertoast/assets/toastify.js 14:48 <fn>
assets/packages/fluttertoast/assets/toastify.js 14:90 <fn>
ReferenceError: Toastify is not defined

答案1

得分: 3

Early fix by shivbo96. his commit hash is 3362fbe84cde30bd68875f1e04c214c72b054fd9
link https://github.com/ponnamkarthik/FlutterToast/commit/3362fbe84cde30bd68875f1e04c214c72b054fd9
After Flutter 3.0 update fluttertoast library start showing this error TypeError: Cannot read properties of null (reading 'exports')

英文:

Early fix by shivbo96. his commit hash is 3362fbe84cde30bd68875f1e04c214c72b054fd9
link https://github.com/ponnamkarthik/FlutterToast/commit/3362fbe84cde30bd68875f1e04c214c72b054fd9
After Flutter 3.0 update fluttertoast library start showing this error TypeError: Cannot read properties of null (reading 'exports')

huangapple
  • 本文由 发表于 2023年5月17日 18:03:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/76270880.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定