Whenever I run the command dart run sqflite_common_ffi_web:setup to generate the files, it generates the error below. #1121
mgdonato23
started this conversation in
Show and tell
Replies: 1 comment
-
There is indeed an unfortunate breaking change in web 1.0.0 that prevents compatibility for the setup tool. I can see 2 workarounds until your project supports web 1.0.0 Solution 1: Temp overridesTemporarily overrides the dependency - just to setup the workers.
Solution 2: Create the worker in another projectThe workaround here is to run the setup in another project and copy the generated
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[SEVERE] build_web_compilers:entrypoint on web/sqflite_sw.dart: ExitCode:1
StdOut:
org-dartlang-app:///packages/sqflite_common_ffi_web/src/web/load_sqlite_web.dart@2157+1:
Error: The argument type 'String' can't be assigned to the parameter type 'JSAny'.
org-dartlang-app:///packages/sqflite_common_ffi_web/src/web/load_sqlite_web.dart@2451+1:
Error: The argument type 'String' can't be assigned to the parameter type 'JSAny'.
Error: Compilation failed.
StdErr:
[INFO] Running build completed, took 35.7s
[INFO] Caching finalized dependency graph completed, took 448ms
[SEVERE] Failed after 36.2s
[SEVERE] FailureType: 1
Unhandled exception:
Beta Was this translation helpful? Give feedback.
All reactions