Null error breaks app only in release builds
- Dominant language
- Dart
- Stars
- 4.4k
- Forks
- 449
- PR merge metrics
- No merged PRs in 30d
Description
There are the following error messages on the WEB DevTools console:
```
TypeError: null: type 'minified:Ue' is not a subtype of type 'minified:pb'
main.dart.js:23522 at Object.f (https://app.0byte.app/main.dart.js:4227:3)
main.dart.js:23522 at Object.aQE (https://app.0byte.app/main.dart.js:4842:18)
main.dart.js:23522 at iD.b1i [as a] (https://app.0byte.app/main.dart.js:4837:3)
main.dart.js:23522 at iD.b1w (https://app.0byte.app/main.dart.js:4809:10)
main.dart.js:23522 at aoM.$1 (https://app.0byte.app/main.dart.js:35328:28)
main.dart.js:23522 at bm.t (https://app.0byte.app/main.dart.js:34869:19)
main.dart.js:23522 at ab4.br (https://app.0byte.app/main.dart.js:73079:126)
main.dart.js:23522 at ab4.br (https://app.0byte.app/main.dart.js:75192:13)
main.dart.js:23522 at ab4.iR (https://app.0byte.app/main.dart.js:64570:9)
main.dart.js:23522 at ab4.iR (https://app.0byte.app/main.dart.js:64606:11)
```
```
Another exception was thrown: Instance of 'minified:eJ'
```
There are no issues when running debug. They only appear when using flutter release.
Found someone with same issue: https://stackoverflow.com/questions/72676504/instance-of-minifiedpdynamic-type-minifiedpdynamic-is-not-a-subtype-o
Only happens on WEB target AND only when using release builds.
**Steps to Reproduce**
1. Clone https://github.com/gruvw/0byte, `git clone https://github.com/gruvw/0byte.git`
2. `cd 0byte`
3. `git reset --hard 5b751693a0bff45786110e2b491de17302682bea`
4. `flutter run --release` and select WEB target
5. Follow steps to reproduce https://github.com/gruvw/0byte/issues/3
**Version**
- Platform: Web (issue is only present on web releases)
- Flutter version: 3.3.10
- Hive version: 2.2.3
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.