java-james / flutter_dotenv

Loads environment variables from `.env`.
https://pub.dartlang.org/packages/flutter_dotenv
MIT License
213 stars 48 forks source link

Safari shows a blank page #26

Closed silviamacis closed 3 years ago

silviamacis commented 3 years ago

with Prerelease: 4.0.0-nullsafety.0 Safari doesn't load the web app. It works correctly with Chrome and with the 3.1.0 version.

Schermata 2021-03-17 alle 11 51 13

Dart SDK version: 2.12.1 (stable)

java-james commented 3 years ago

Thanks for opening this issue. I will try reproduce it with the vanilla example application and report back.

amritk commented 3 years ago

Yep got the same error with:


void main() async {
  await dotenv.load(fileName: '.env');
  print('Errors before this');
}

Safari and also Epiphany (if testing on linux)

justinenerio commented 3 years ago

Any updates on this? Also experiencing this issue

miyoyo commented 3 years ago

Safari does not support positive lookbehinds. This regex is not Safari compatible

ngxingyu commented 3 years ago

I removed the use of positive lookbehind, yet to test with the Safari browser.

java-james commented 3 years ago

Thanks @miyoyo

@ngxingyu has authored PR #29 I have released as 4.0.0-nullsafety.1 to pub.dev now. Please check this fixes the issue for you.