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

New wasm compile fails with JS fallback #3747

Closed
Tracked by #3730
kevmoo opened this issue Sep 10, 2024 · 0 comments · Fixed by #3748
Closed
Tracked by #3730

New wasm compile fails with JS fallback #3747

kevmoo opened this issue Sep 10, 2024 · 0 comments · Fixed by #3748

Comments

@kevmoo
Copy link
Member

kevmoo commented Sep 10, 2024

At 49d83f4

with this build.yaml

# See https://github.com/dart-lang/build/tree/master/build_web_compilers#configuration
targets:
  $default:
    builders:
      build_web_compilers|dart2js_archive_extractor:
        options:
          filter_outputs: false
      build_web_compilers|entrypoint:
        generate_for:
          - web/**.dart
        options:
          compilers:
            dart2wasm:
              args:
                - -O4
                - --no-strip-wasm
            dart2js:
              args:
                - --dump-info
                - --no-source-maps
                - --show-package-warnings
                - -O4

(and a fix for #3746)

We see a runtime crash in safari (JS mode)

[Error] Unhandled Promise Rejection: ReferenceError: Can't find variable: joinPathSegments
	resolveUrlWithSegments (main.dart.js:3)
	(anonymous function) (main.dart.js:25)
	(anonymous function) (main.dart.js:1)
	Global Code (main.dart.js:29)
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

Successfully merging a pull request may close this issue.

1 participant