Open flrnsbt opened 3 months ago
Works well with javascript web
+1
Happens with Flutter 3.22.2
but not with Flutter 3.22.1
, so downgrading Flutter to 3.22.1 is currently a workaround
This is currently breaking our build pipeline as well, downgrading to 3.22.1 fixed it
Happens with
Flutter 3.22.2
but not withFlutter 3.22.1
, so downgrading Flutter to 3.22.1 is currently a workaround
thank for sharing, I work well build success with flutter 3.22.1
Hi, any another workaround instead of we downgrade to Flutter 3.22.1. I think that solution just for short term only, we need to fixed it for long term solution? Because Flutter SDK will always upgraded?
any updates?
You can use one of these overrides in your pubspec.yaml
:
Please confirm if it works for you, and the compile target platform you've tested (the more, the better).
dependency_overrides:
vector_graphics_compiler:
git:
url: https://github.com/nohli/vector_graphics
path: packages/vector_graphics_compiler
ref: js_interop
dependency_overrides:
vector_graphics_compiler:
git:
url: https://github.com/nohli/vector_graphics
path: packages/vector_graphics_compiler
ref: io
You can use one of these overrides in your
pubspec.yaml
: Please confirm if it works for you, and the platform you've tested (the more, the better).dependency_overrides: vector_graphics_compiler: git: url: https://github.com/nohli/vector_graphics path: packages/vector_graphics_compiler ref: js_interop
dependency_overrides: vector_graphics_compiler: git: url: https://github.com/nohli/vector_graphics path: packages/vector_graphics_compiler ref: io
Neither works for me
Neither works for me
We need to differentiate. This issue is not caused by vector_graphics
, but by win32
.
Is it possible that you are importing it transitively through another package?
Thank you for your support! I will open a issue in win32
package
I tried this override:
dependency_overrides:
vector_graphics_compiler:
git:
url: https://github.com/nohli/vector_graphics
path: packages/vector_graphics_compiler
ref: js_interop
and it solved the issue when running flutter build web --wasm
on Linux.
../../../../../../.pub-cache/hosted/pub.dev/vector_graphics_compiler-1.1.11+1/lib/src/svg/_tessellator_ffi.dart:6:1: Error: 'dart:ffi' can't be imported when compiling to Wasm. import 'dart:ffi' as ffi;