Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DartError: Unsupported operation: Platform._environment #361

Open
beautybird opened this issue Jan 4, 2025 · 1 comment
Open

DartError: Unsupported operation: Platform._environment #361

beautybird opened this issue Jan 4, 2025 · 1 comment

Comments

@beautybird
Copy link

Description

I followed the jaspr details to create a Flutter with Jaspr, just tried to open the project with Chrome browser and it throws an error:

DartError: Unsupported operation: Platform._environment

I use Ubuntu 24.04 LTS
and
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on Ubuntu 24.04.1 LTS 6.8.0-51-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Community Edition (version 2024.1)

some on Github suggest removing dart.io ?!

@schultek
Copy link
Owner

schultek commented Jan 4, 2025

Yes you can't use dart:io on the client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants