dio_cache_interceptor icon indicating copy to clipboard operation
dio_cache_interceptor copied to clipboard

Compilation error on web

Open alkaitagi opened this issue 1 year ago • 1 comments

Works fine on mobile, however building for web fails:

Target dart2js failed: ProcessException: Process exited abnormally with exit code 1:
/C:/.../Pub/Cache/hosted/pub.dev/dio_cache_interceptor_isar_store-1.0.1/lib/src/store/cach
e_collection.g.dart:18:7:
Error: The integer literal 1541975981581312059 can't be represented exactly in JavaScript.
  id: 1541975981581312059,
      ^^^^^^^^^^^^^^^^^^^
/C:/.../Pub/Cache/hosted/pub.dev/dio_cache_interceptor_isar_store-1.0.1/lib/src/store/cach
e_collection.g.dart:93:11:
Error: The integer literal 5885332021012296610 can't be represented exactly in JavaScript.
      id: 5885332021012296610,
          ^^^^^^^^^^^^^^^^^^^

alkaitagi avatar Apr 01 '24 11:04 alkaitagi

Isar web support is only in prerelease version (4.0.0-dev.14 onwards).

ISAR V4 IS NOT READY FOR PRODUCTION USE

See https://github.com/isar/isar/issues/686#issuecomment-1784955617

Muhammed-Rahif avatar Apr 03 '24 17:04 Muhammed-Rahif