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

Massive errors after upgrading #321

Closed
Yoda-Man opened this issue Jul 4, 2022 · 15 comments
Closed

Massive errors after upgrading #321

Yoda-Man opened this issue Jul 4, 2022 · 15 comments

Comments

@Yoda-Man
Copy link

Yoda-Man commented Jul 4, 2022

/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:13:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:6:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:5:8: Error: Not found: 'dart:html'
import 'dart:html';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:3:8: Error: Not found: 'dart:js'
import 'dart:js' as js;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:22:8: Error: Not found: 'dart:html'
import 'dart:html';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.4/lib/js.dart:8:1: Error: Not found: 'dart:js'
export 'dart:js' show allowInterop, allowInteropCaptureThis;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.4/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
export 'dart:js_util';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:23:8: Error: Not found: 'dart:js_util'
import 'dart:js_util';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:3:8: Error: Not found: 'dart:js'
import 'dart:js' as js;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:79:48: Error: Type 'html.EventListener' not found.
external ui.VoidCallback addPopStateListener(html.EventListener fn);
^^^^^^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:193:3: Error: Type 'html.Location' not found.
html.Location get _location => html.window.location;
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:195:3: Error: Type 'html.History' not found.
html.History get _history => html.window.history;
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:198:28: Error: Type 'html.EventListener' not found.
void addPopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:203:31: Error: Type 'html.EventListener' not found.
void removePopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:7: Error: Type 'AnchorElement' not found.
final AnchorElement _urlParsingNode = AnchorElement();
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:7: Error: Type 'Element' not found.
final Element? _baseElement = document.querySelector('base');
^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:135:14: Error: Type 'CanvasRenderingContext2D' not found.
required CanvasRenderingContext2D canvasContext,
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:145:12: Error: Type 'CanvasRenderingContext2D' not found.
external CanvasRenderingContext2D get canvasContext;
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:146:30: Error: Type 'CanvasRenderingContext2D' not found.
external set canvasContext(CanvasRenderingContext2D ctx);
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:167:26: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.

  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/Flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance?.cancelFrameCallbackWithId(_frameCallbackID);
    ^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:170:28: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/Flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance?.scheduleFrameCallback(_beginFrame) ?? -1;
    ^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:272:26: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/Flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance?.cancelFrameCallbackWithId(frameCallbackID);
    ^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:230:16: Error: 'CanvasElement' isn't a type.
    final html.CanvasElement canvas =
    ^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:231:12: Error: Undefined name 'context'.
    js.context['document'].createElement('canvas');
    ^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:232:16: Error: 'CanvasRenderingContext2D' isn't a type.
    final html.CanvasRenderingContext2D context =
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:233:41: Error: 'CanvasRenderingContext2D' isn't a type.
    canvas.getContext('2d') as html.CanvasRenderingContext2D;
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:248:10: Error: Method not found: 'promiseToFuture'.
    .promiseToFuture(pdfJsPage.render(renderContext).promise);
    ^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:255:25: Error: Method not found: 'FileReader'.
    final reader = html.FileReader()..readAsArrayBuffer(blob);
    ^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:256:35: Error: 'ProgressEvent' isn't a type.
    reader.onLoadEnd.listen((html.ProgressEvent e) {
    ^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:307:30: Error: Undefined name 'window'.
    js_util.setProperty(html.window, 'pdfx_texture
    $id', null);
    ^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:307:13: Error: Method not found: 'setProperty'.
    js_util.setProperty(html.window, 'pdfx_texture_$id', null);
    ^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:374:30: Error: Undefined name 'window'.
    js_util.setProperty(html.window, 'pdfx_texture_$id', data);
    ^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:374:13: Error: Method not found: 'setProperty'.
    js_util.setProperty(html.window, 'pdfx_texture_$id', data);
    ^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:423:26: Error: Undefined name 'document'.
    final canvas = (html.document.createElement('canvas') as html.CanvasElement)
    ^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:423:67: Error: 'CanvasElement' isn't a type.
    final canvas = (html.document.createElement('canvas') as html.CanvasElement)
    ^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:427:16: Error: 'CanvasRenderingContext2D' isn't a type.
    final html.CanvasRenderingContext2D context =
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:428:41: Error: 'CanvasRenderingContext2D' isn't a type.
    canvas.getContext('2d') as html.CanvasRenderingContext2D;
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:443:10: Error: Method not found: 'promiseToFuture'.
    .promiseToFuture(page.renderer.render(rendererContext).promise);
    ^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:449:25: Error: Method not found: 'FileReader'.
    final reader = html.FileReader()..readAsArrayBuffer(blob);
    ^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:450:35: Error: 'ProgressEvent' isn't a type.
    reader.onLoadEnd.listen((html.ProgressEvent e) {
    ^^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:48:14: Error: Method not found: 'allowInterop'.
    getPath: allowInterop(strategy.getPath),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:49:15: Error: Method not found: 'allowInterop'.
    getState: allowInterop(strategy.getState),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:50:26: Error: Method not found: 'allowInterop'.
    addPopStateListener: allowInterop(strategy.addPopStateListener),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:51:25: Error: Method not found: 'allowInterop'.
    prepareExternalUrl: allowInterop(strategy.prepareExternalUrl),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:52:16: Error: Method not found: 'allowInterop'.
    pushState: allowInterop(strategy.pushState),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:53:19: Error: Method not found: 'allowInterop'.
    replaceState: allowInterop(strategy.replaceState),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:54:9: Error: Method not found: 'allowInterop'.
    go: allowInterop(strategy.go),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:79:53: Error: 'EventListener' isn't a type.
    external ui.VoidCallback addPopStateListener(html.EventListener fn);
    ^^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:193:39: Error: Undefined name 'window'.
    html.Location get _location => html.window.location;
    ^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:195:37: Error: Undefined name 'window'.
    html.History get _history => html.window.history;
    ^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:198:33: Error: 'EventListener' isn't a type.
    void addPopStateListener(html.EventListener fn) {
    ^^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:199:10: Error: Undefined name 'window'.
    html.window.addEventListener('popstate', fn);
    ^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:203:36: Error: 'EventListener' isn't a type.
    void removePopStateListener(html.EventListener fn) {
    ^^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:204:10: Error: Undefined name 'window'.
    html.window.removeEventListener('popstate', fn);
    ^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:7: Error: 'AnchorElement' isn't a type.
    final AnchorElement _urlParsingNode = AnchorElement();
    ^^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:39: Error: Method not found: 'AnchorElement'.
    final AnchorElement _urlParsingNode = AnchorElement();
    ^^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:7: Error: 'Element' isn't a type.
    final Element? _baseElement = document.querySelector('base');
    ^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:31: Error: Undefined name 'document'.
    final Element? _baseElement = document.querySelector('base');
    ^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/plugin_registry.dart:66:8: Error: Method not found: 'webOnlySetPluginHandler'.
    ui.webOnlySetPluginHandler(handleFrameworkMessage);
    ^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:42:16: Error: Method not found: 'getProperty'.
    'cMapUrl': getProperty(_pdfRenderOptions, 'cMapUrl'),
    ^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:43:19: Error: Method not found: 'getProperty'.
    'cMapPacked': getProperty(_pdfRenderOptions, 'cMapPacked'),
    ^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:45:23: Error: Method not found: 'getProperty'.
    final otherParams = getProperty(_pdfRenderOptions, 'params');
    ^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:55:27: Error: Method not found: 'jsify'.
    _pdfjsGetDocument(jsify(_getParams(jsParams))).promise);
    ^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:54:5: Error: Method not found: 'promiseToFuture'.
    promiseToFuture(
    ^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:135:14: Error: 'CanvasRenderingContext2D' isn't a type.
    required CanvasRenderingContext2D canvasContext,
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:146:30: Error: 'CanvasRenderingContext2D' isn't a type.
    external set canvasContext(CanvasRenderingContext2D ctx);
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/document.dart:23:7: Error: The method 'promiseToFuture' isn't defined for the class 'Document'.
  • 'Document' is from 'package:pdfx/src/renderer/web/document/document.dart' ('/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/document.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'promiseToFuture'.
    promiseToFuture(document.getPage(pageNumber!));
    ^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:39:16: Error: 'CanvasElement' isn't a type.
    final html.CanvasElement canvas =
    ^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:40:12: Error: Undefined name 'context'.
    js.context['document'].createElement('canvas');
    ^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:41:16: Error: 'CanvasRenderingContext2D' isn't a type.
    final html.CanvasRenderingContext2D context =
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:42:41: Error: 'CanvasRenderingContext2D' isn't a type.
    canvas.getContext('2d') as html.CanvasRenderingContext2D;
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:62:25: Error: Method not found: 'FileReader'.
    final reader = html.FileReader()..readAsArrayBuffer(blob);
    ^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:64:13: Error: 'ProgressEvent' isn't a type.
    (html.ProgressEvent e) {
    ^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:56:11: Error: The method 'promiseToFuture' isn't defined for the class 'Page'.
  • 'Page' is from 'package:pdfx/src/renderer/web/document/page.dart' ('/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'promiseToFuture'.
    await promiseToFuture(renderer.render(renderContext).promise);
    ^^^^^^^^^^^^^^^
    Unhandled exception:
    FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)
    #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
    Update issue templates #1 asFileUri (package:vm/kernel_front_end.dart:652:37)
    Add a way to render a subset of a PDF page #2 writeDepfile (package:vm/kernel_front_end.dart:792:21)
#3 FrontendCompiler.compile (file:///C:/b/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/frontend_server.dart:615:9)
  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 1m 2s
Running Gradle task 'bundleRelease'... 64,0s
Gradle task bundleRelease failed with exit code 1
PS C:\Mobile\digidata> flutter build apk --split-per-abi

Building with sound null safety

Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
Invalid depfile: C:\Mobile\digidata.dart_tool\flutter_build\ae12e54d2a2c06e4038f99d635ae7e02\kernel_snapshot.d
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:13:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:6:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:5:8: Error: Not found: 'dart:html'
import 'dart:html';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:3:8: Error: Not found: 'dart:js'
import 'dart:js' as js;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:22:8: Error: Not found: 'dart:html'
import 'dart:html';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.4/lib/js.dart:8:1: Error: Not found: 'dart:js'
export 'dart:js' show allowInterop, allowInteropCaptureThis;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.4/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
export 'dart:js_util';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:23:8: Error: Not found: 'dart:js_util'
import 'dart:js_util';
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html' as html;
^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:3:8: Error: Not found: 'dart:js'
import 'dart:js' as js;
^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:79:48: Error: Type 'html.EventListener' not found.
external ui.VoidCallback addPopStateListener(html.EventListener fn);
^^^^^^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:193:3: Error: Type 'html.Location' not found.
html.Location get _location => html.window.location;
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:195:3: Error: Type 'html.History' not found.
html.History get _history => html.window.history;
^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:198:28: Error: Type 'html.EventListener' not found.
void addPopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:203:31: Error: Type 'html.EventListener' not found.
void removePopStateListener(html.EventListener fn) {
^^^^^^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:7: Error: Type 'AnchorElement' not found.
final AnchorElement _urlParsingNode = AnchorElement();
^^^^^^^^^^^^^
/C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:7: Error: Type 'Element' not found.
final Element? _baseElement = document.querySelector('base');
^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:135:14: Error: Type 'CanvasRenderingContext2D' not found.
required CanvasRenderingContext2D canvasContext,
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:145:12: Error: Type 'CanvasRenderingContext2D' not found.
external CanvasRenderingContext2D get canvasContext;
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:146:30: Error: Type 'CanvasRenderingContext2D' not found.
external set canvasContext(CanvasRenderingContext2D ctx);
^^^^^^^^^^^^^^^^^^^^^^^^
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:167:26: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.

  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/Flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance?.cancelFrameCallbackWithId(_frameCallbackID);
    ^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:170:28: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/Flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance?.scheduleFrameCallback(_beginFrame) ?? -1;
    ^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:272:26: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/Flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance?.cancelFrameCallbackWithId(frameCallbackID);
    ^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:230:16: Error: 'CanvasElement' isn't a type.
    final html.CanvasElement canvas =
    ^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:231:12: Error: Undefined name 'context'.
    js.context['document'].createElement('canvas');
    ^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:232:16: Error: 'CanvasRenderingContext2D' isn't a type.
    final html.CanvasRenderingContext2D context =
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:233:41: Error: 'CanvasRenderingContext2D' isn't a type.
    canvas.getContext('2d') as html.CanvasRenderingContext2D;
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:248:10: Error: Method not found: 'promiseToFuture'.
    .promiseToFuture(pdfJsPage.render(renderContext).promise);
    ^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:255:25: Error: Method not found: 'FileReader'.
    final reader = html.FileReader()..readAsArrayBuffer(blob);
    ^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:256:35: Error: 'ProgressEvent' isn't a type.
    reader.onLoadEnd.listen((html.ProgressEvent e) {
    ^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:307:30: Error: Undefined name 'window'.
    js_util.setProperty(html.window, 'pdfx_texture
    $id', null);
    ^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:307:13: Error: Method not found: 'setProperty'.
    js_util.setProperty(html.window, 'pdfx_texture_$id', null);
    ^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:374:30: Error: Undefined name 'window'.
    js_util.setProperty(html.window, 'pdfx_texture_$id', data);
    ^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:374:13: Error: Method not found: 'setProperty'.
    js_util.setProperty(html.window, 'pdfx_texture_$id', data);
    ^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:423:26: Error: Undefined name 'document'.
    final canvas = (html.document.createElement('canvas') as html.CanvasElement)
    ^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:423:67: Error: 'CanvasElement' isn't a type.
    final canvas = (html.document.createElement('canvas') as html.CanvasElement)
    ^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:427:16: Error: 'CanvasRenderingContext2D' isn't a type.
    final html.CanvasRenderingContext2D context =
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:428:41: Error: 'CanvasRenderingContext2D' isn't a type.
    canvas.getContext('2d') as html.CanvasRenderingContext2D;
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:443:10: Error: Method not found: 'promiseToFuture'.
    .promiseToFuture(page.renderer.render(rendererContext).promise);
    ^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:449:25: Error: Method not found: 'FileReader'.
    final reader = html.FileReader()..readAsArrayBuffer(blob);
    ^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/platform.dart:450:35: Error: 'ProgressEvent' isn't a type.
    reader.onLoadEnd.listen((html.ProgressEvent e) {
    ^^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:48:14: Error: Method not found: 'allowInterop'.
    getPath: allowInterop(strategy.getPath),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:49:15: Error: Method not found: 'allowInterop'.
    getState: allowInterop(strategy.getState),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:50:26: Error: Method not found: 'allowInterop'.
    addPopStateListener: allowInterop(strategy.addPopStateListener),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:51:25: Error: Method not found: 'allowInterop'.
    prepareExternalUrl: allowInterop(strategy.prepareExternalUrl),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:52:16: Error: Method not found: 'allowInterop'.
    pushState: allowInterop(strategy.pushState),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:53:19: Error: Method not found: 'allowInterop'.
    replaceState: allowInterop(strategy.replaceState),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:54:9: Error: Method not found: 'allowInterop'.
    go: allowInterop(strategy.go),
    ^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/js_url_strategy.dart:79:53: Error: 'EventListener' isn't a type.
    external ui.VoidCallback addPopStateListener(html.EventListener fn);
    ^^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:193:39: Error: Undefined name 'window'.
    html.Location get _location => html.window.location;
    ^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:195:37: Error: Undefined name 'window'.
    html.History get _history => html.window.history;
    ^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:198:33: Error: 'EventListener' isn't a type.
    void addPopStateListener(html.EventListener fn) {
    ^^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:199:10: Error: Undefined name 'window'.
    html.window.addEventListener('popstate', fn);
    ^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:203:36: Error: 'EventListener' isn't a type.
    void removePopStateListener(html.EventListener fn) {
    ^^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/url_strategy.dart:204:10: Error: Undefined name 'window'.
    html.window.removeEventListener('popstate', fn);
    ^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:7: Error: 'AnchorElement' isn't a type.
    final AnchorElement _urlParsingNode = AnchorElement();
    ^^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:7:39: Error: Method not found: 'AnchorElement'.
    final AnchorElement _urlParsingNode = AnchorElement();
    ^^^^^^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:7: Error: 'Element' isn't a type.
    final Element? _baseElement = document.querySelector('base');
    ^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/navigation/utils.dart:20:31: Error: Undefined name 'document'.
    final Element? _baseElement = document.querySelector('base');
    ^^^^^^^^
    /C:/Flutter/packages/flutter_web_plugins/lib/src/plugin_registry.dart:66:8: Error: Method not found: 'webOnlySetPluginHandler'.
    ui.webOnlySetPluginHandler(handleFrameworkMessage);
    ^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:42:16: Error: Method not found: 'getProperty'.
    'cMapUrl': getProperty(_pdfRenderOptions, 'cMapUrl'),
    ^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:43:19: Error: Method not found: 'getProperty'.
    'cMapPacked': getProperty(_pdfRenderOptions, 'cMapPacked'),
    ^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:45:23: Error: Method not found: 'getProperty'.
    final otherParams = getProperty(_pdfRenderOptions, 'params');
    ^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:55:27: Error: Method not found: 'jsify'.
    _pdfjsGetDocument(jsify(_getParams(jsParams))).promise);
    ^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:54:5: Error: Method not found: 'promiseToFuture'.
    promiseToFuture(
    ^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:135:14: Error: 'CanvasRenderingContext2D' isn't a type.
    required CanvasRenderingContext2D canvasContext,
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/pdfjs.dart:146:30: Error: 'CanvasRenderingContext2D' isn't a type.
    external set canvasContext(CanvasRenderingContext2D ctx);
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/document.dart:23:7: Error: The method 'promiseToFuture' isn't defined for the class 'Document'.
  • 'Document' is from 'package:pdfx/src/renderer/web/document/document.dart' ('/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/document.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'promiseToFuture'.
    promiseToFuture(document.getPage(pageNumber!));
    ^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:39:16: Error: 'CanvasElement' isn't a type.
    final html.CanvasElement canvas =
    ^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:40:12: Error: Undefined name 'context'.
    js.context['document'].createElement('canvas');
    ^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:41:16: Error: 'CanvasRenderingContext2D' isn't a type.
    final html.CanvasRenderingContext2D context =
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:42:41: Error: 'CanvasRenderingContext2D' isn't a type.
    canvas.getContext('2d') as html.CanvasRenderingContext2D;
    ^^^^^^^^^^^^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:62:25: Error: Method not found: 'FileReader'.
    final reader = html.FileReader()..readAsArrayBuffer(blob);
    ^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:64:13: Error: 'ProgressEvent' isn't a type.
    (html.ProgressEvent e) {
    ^^^^^^^^^^^^^
    /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart:56:11: Error: The method 'promiseToFuture' isn't defined for the class 'Page'.
  • 'Page' is from 'package:pdfx/src/renderer/web/document/page.dart' ('/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/pdfx-2.1.1/lib/src/renderer/web/document/page.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'promiseToFuture'.
    await promiseToFuture(renderer.render(renderContext).promise);
    ^^^^^^^^^^^^^^^
    Unhandled exception:
    FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)
    #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
    Update issue templates #1 asFileUri (package:vm/kernel_front_end.dart:652:37)
    Add a way to render a subset of a PDF page #2 writeDepfile (package:vm/kernel_front_end.dart:792:21)
#3 FrontendCompiler.compile (file:///C:/b/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/frontend_server.dart:615:9) #4 starter (file:///C:/b/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/frontend_server.dart:1433:12) #5 main (file:///C:/b/s/w/ir/cache/builder/sdk/pkg/frontend_server/bin/frontend_server_starter.dart:10:14)

BUILD FAILED in 29s
Running Gradle task 'assembleRelease'... 30,5s
Gradle task assembleRelease failed with exit code 1
PS C:\Mobile\digidata> flutter build apk --split-per-abi

Building with sound null safety

e: C:\Flutter.pub-cache\hosted\pub.dartlang.org\pdfx-2.1.1\android\src\main\kotlin\io\scer\pdfx\Messages.kt: (30, 1): Class 'Messages' is not abstract and does not implement abstract member public abstract fun unregisterTexture(message: Pigeon.UnregisterTextureMessage): Unit defined in dev.flutter.pigeon.Pigeon.PdfxApi
e: C:\Flutter.pub-cache\hosted\pub.dartlang.org\pdfx-2.1.1\android\src\main\kotlin\io\scer\pdfx\Messages.kt: (286, 5): 'unregisterTexture' overrides nothing

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':pdfx:compileReleaseKotlin'.

Compilation error. See log for more details

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.

@SuryaSharpsell
Copy link

Facing the same issue after upgrading to 2.1.1

@petodavid
Copy link

Same issue here

@EDnny12
Copy link

EDnny12 commented Jul 5, 2022

same issue with compileSdkVersion 33

@sgehrman
Copy link

sgehrman commented Jul 6, 2022

same

@Slexom
Copy link

Slexom commented Jul 6, 2022

Same issue on windows build

@Yoda-Man
Copy link
Author

Yoda-Man commented Jul 6, 2022

True I also noticed on the windows build its quite a big issue now i cant move forward and test my stuff. Is there an alternative pdf viewer as good as this one that also works for Web

@ThomasAunvik
Copy link

Just temporarely roll back to v2.0.1, and update when it is fixed.

@Katekko
Copy link

Katekko commented Jul 6, 2022

Same here...

@JorgeCroquer
Copy link

Same error here

@renanyoy
Copy link

renanyoy commented Jul 9, 2022

fixed for now using version 2.0.1+2

@Yoda-Man
Copy link
Author

image
downgrading did not work for me is there a good alternative library I can use.

@harry-dickson
Copy link

harry-dickson commented Jul 12, 2022

Looks like it was this change that broke things: Added pdfx_plugin.dart into exports list

There is a PR to undo that change: 320

Downgraded to pdfx: <2.0.1+3 which needs:

dependency_overrides:
  photo_view: ^0.14.0

(if you need latest photo_view)

@Yoda-Man
Copy link
Author

this is messy the suggested downgrade does not work.

@Yoda-Man
Copy link
Author

downgrading is not working

@SergeShkurko
Copy link
Member

Fixed in 2.2.0
https://pub.dev/packages/pdfx/versions/2.2.0

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