-
Notifications
You must be signed in to change notification settings - Fork 8
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
Version 3.0.4 can't be compiled with dart2js server mode #251
Comments
Is this a regression? related to dart-archive/crypto#165? cc @kevmoo |
Ah shoot. Hrm... |
@simolus3 – which version of Flutter/Dart are you using? |
|
SO WEIRD! Can you try running the crypto tests locally @simolus3 ?
|
Oh wait I think I know what's happening haha, I'm running dart2js in server mode because my only test that is affected by this is |
@simolus3 – ah! We can fix that I think. |
@sigmundch is looking into this now! |
@kevmoo - ideally both I recall there were recent changes around what libraries are exposed by the wasm backend, and found a recent change it to make Given that this is already available, I'd suggest to use that for now: import 'fast.dart'
if (dart.library.ffi) 'fast.dart' // force wasm to go down this path.
if (dart.library.js) 'slow.dart'; And later revisit to make it more precise. Ideally, we should allow conditional imports that directly describe the platform (e.g. |
My bad, the example above is incorrect - the change to |
For now, I'd suggest revert the original change until we land something. We have dart-lang/sdk#55266 to track the underlying issue. |
Fixed in dart-archive/crypto@eede7d6 |
This is a regression in version 3.0.4, compiling this package works fine with 3.0.3:
There are many more such errors in that file.
The text was updated successfully, but these errors were encountered: