Closed gcb closed 5 months ago
I get the same things using flutter pub global run
instead of dart
same results moving webdev
into the dev_deps and using dart run webdev serve
Also, forgot to mention, project was just created with the versions mentioned on the pubspec with flutter create ... --template=app
[✓] Flutter (Channel stable, 3.16.9, on Arch Linux 6.7.2-arch1-1, locale en_US.UTF-8)
• Flutter version 3.16.9 on channel stable at /home/arch/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 41456452f2 (11 days ago), 2024-01-25 10:06:23 -0800
• Engine revision f40e976bed
• Dart version 3.2.6
• DevTools version 2.28.5
found some outdate guides that mention the need for a main.dart
scaffolding in web/
that is not provided by flutter create
nor webserve serve
but they also mention a repo that doesn't exist anymore: https://github.com/flutter/flutter_web
package:webdev
is intended for use by non-Flutter Dart web applications. For developing Flutter web apps you should generally use their standard flutter run -d <browser>
and flutter build web
commands.
Is there something specific you're trying to do that isn't working with those commands?
Simply serve with the webserve debuger instance without a locally installed chrome. Basically a headless flutter run -d
edit: looking at the right sources on the flutter side figured out i can get this to work with flutter run -d web-server
and then use the undocumented params --web-port
and --web-hostname
for port and listen address. I think this cover the need I had to get this working
edit2: spoke too soon. With the flutter tooling there's no option to select --debug-extension
or --debug
here. It always tries to force --debug-extension
, which is also not desirable.
Hi @gcb - as @parlough mentioned WebDev is intended to build and serve non-Flutter Dart web apps. Could you open a bug in https://github.com/flutter/flutter describing the functionality you would like? Thanks!
Hi. Need help understanding why webdev is failing to set href for a web build.
(also not sure why the verbose log items show up as SEVERE instead of something like DEBUG. Edit: those messages seem to come from
dart-lang/build
)results in
pubspec.yaml
: