dart-lang / code_builder

A fluent API for generating valid Dart source code
https://pub.dev/packages/code_builder
BSD 3-Clause "New" or "Revised" License
423 stars 66 forks source link

build_web_compilers:entrypoint on web/main.dart: #446

Open MoinMoinCode opened 6 months ago

MoinMoinCode commented 6 months ago

ISSUE CONCERNING USING code_builder WITH dart_style ON WEB

I was trying to run some dart code using the code_builder package and dart_style package in dart web for my project, but I keep getting this error that says:

[WARNING] build_web_compilers:entrypoint on web/main.dart: Skipping compiling pg|web/main.dart with ddc because some of its
main.dart:1
transitive libraries have sdk dependencies that not supported on this platform:

analyzer|lib/file_system/physical_file_system.dart
analyzer|lib/src/dart/sdk/sdk.dart
analyzer|lib/src/lint/analysis.dart
analyzer|lib/src/summary/package_bundle_reader.dart
analyzer|lib/src/lint/linter.dart
analyzer|lib/src/lint/util.dart
analyzer|lib/src/workspace/blaze_watcher.dart
analyzer|lib/src/lint/io.dart
file|lib/src/io.dart
analyzer|lib/src/util/sdk.dart
analyzer|lib/src/generated/java_engine_io.dart
analyzer|lib/src/summary2/macro.dart
analyzer|lib/src/summary2/kernel_compilation_service.dart
_fe_analyzer_shared|lib/src/macros/compiler/request_channel.dart
_fe_analyzer_shared|lib/src/macros/executor/isolated_executor.dart
_fe_analyzer_shared|lib/src/macros/executor/executor_base.dart
watcher|lib/src/directory_watcher/windows.dart
watcher|lib/src/directory_watcher.dart
watcher|lib/src/directory_watcher/linux.dart
watcher|lib/src/file_watcher/native.dart
watcher|lib/src/file_watcher.dart
watcher|lib/src/directory_watcher/mac_os.dart
watcher|lib/src/stat.dart
watcher|lib/src/file_watcher/polling.dart
watcher|lib/watcher.dart
watcher|lib/src/directory_watcher/polling.dart
watcher|lib/src/utils.dart

https://github.com/dart-lang/build/blob/master/docs/faq.md#how-can-i-resolve-skipped-compiling-warnings

When I check the webpage, it is just blank.

I tried the link stated above, but it didn't really help my case out.

Could someone help me figure this out?

(This error was gotten just by importing the packages into my dart code, making use of at least a part of it, and then running it, either from vscode, or from webdev).