You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: FileNotFoundError on fluter project with module #89
Activity
Dev-Ayan-Dasgupta commentedon Aug 1, 2023
Did you include .env in pubspec.yaml under assets?
neeraj15022001 commentedon Aug 9, 2023
Facing same issue when running Flutter on web, though i haven't tried on other platforms.
Pubspec.yaml

I have added env to assets as told in docs
jsmile commentedon Aug 18, 2023
I have the same trouble:
E/flutter (28853): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Instance of 'FileNotFoundError'- my pubspec.yaml
beibeigd commentedon Dec 8, 2023
I tried to solve it like this in windows.
.env file cannot be empty.
pubspec.yaml
√
×