Closed Bus42 closed 7 months ago
the same issue when I deployed flutter app to IIS. my pubspec.yaml
assets:
and I've placed cofig file inside root
Also not working with .env as file name Any thoughts?
It seems to be a "random" error with the Flutter engine. Out of nowhere, one of my apps started looking for a file in a directory that does not exist and is not in my pubspec.yaml.
Error while trying to load an asset: Flutter Web engine failed to fetch "assets/error_messages.json". HTTP request succeeded, but the server responded with HTTP status 404.
assets:
- lib/src/utils/error_messages.json
I've tried clearing my cache and everything else I can imagine, it just won't look for the file where I tell it to.
Basically, this doesn't seem to be a dotenv error.
I placed my env files in lib/env This is where I load them in my main.dart
Here's the assets section of my pubspec.yaml
This is the error I get
Error while trying to load an asset: Flutter Web engine failed to fetch "assets/lib/env/web.env". HTTP request succeeded, but the server responded with HTTP status 404.
I've tried clearing my cache, and searching my entire codebase for where it's getting that from, and nothing. What gives?