dart-lang / dart-lang/webdev

Skipping compiling with dart2js because some of its transitive libraries have sdk dependencies that are not supported on this platform:.

Open
#2,686 28 comments 1 reaction 0 assignees View on GitHub
P3 package:webdev triaged type-enhancement
Dominant language
Dart
Stars
224
Forks
94
Avg merge
7h 14m
Merged PRs (30d)
2

Description

Asking here first per https://github.com/dart-lang/build/issues/4179#issuecomment-3248440625

CC and thanks to @davidmorgan

There should be a way to override the unsupported platform check. https://github.com/dart-lang/build/issues/2200#issuecomment-539175477 mentions flutter has this disabled, how?

The code paths in my library have no problems with web yet I cannot use webdev serve to compile a js library.

https://github.com/dart-lang/sdk/issues/50181

Many parts of analyzer work on web yet it seems to be blacklisted. How can I force this to allow a package through and compile the code?

If I dart2js then webdev serve, even though webdev serve skips building, the file built through dart2js works. If I must use dart2js, how can I fully package all the dart dependencies? These packages work fine in flutter too, so I should be able to build them with webdev serve.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with dart2js and webdev serve, comparing the behavior when webdev serve skips building. Read the linked build issues and the SDK issue to determine where the unsupported-platform check is applied; done means a documented or implemented way to compile the affected package through webdev serve.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
build-system, cli, web-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.