Do I need some additional step for using this package on web?
I'm running it on Android/IOS and all goes fine.
But when I try to run the project on Web I get the follwing errors:
3 Locations: No module for http://localhost:58501/dart_sdk.js
Locations: No module for http://localhost:58501/dart_sdk.js
Locations: No module for http://localhost:58501/dart_sdk.js
Locations: No module for http://localhost:58501/dart_sdk.js
109 Locations: No module for http://localhost:58501/dart_sdk.js
Locations: No module for http://localhost:58501/
The code for loading the dotenv files is:
await dotenv.load( fileName: 'assets/${kReleaseMode ? 'prod.env' : 'dev.env'}', );
Do I need some additional step for using this package on web?
I'm running it on Android/IOS and all goes fine.
But when I try to run the project on Web I get the follwing errors:
The code for loading the dotenv files is:
await dotenv.load( fileName: 'assets/${kReleaseMode ? 'prod.env' : 'dev.env'}', );
My env files are under the assets folder
The files are also added to pubspec.yaml as: