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
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'}', );
Activity
jstdk commentedon Nov 4, 2022
Same question here. Can't get it to work on Vercel & Netlify
robert-virkus commentedon Nov 24, 2022
In may case I had to move the
.envfile into the root of my project, then it worked fine.So in pubspec.yaml I have:
arefrafei92 commentedon Jul 6, 2024
If somebody else reached out here, here is your answer : ##95 (comment)