Closed fusion44 closed 7 months ago
I can better catch this for sure. And I have also experienced this before. However I don't know where this error exactly comes from (some incorrect state the build runner is in but I don't know specifics) so I won't be able to properly fix it.
Figured out this was a breaking change in build_daemon and webdev packages that slipped in with a minor version.
Its unfortunate that since these package are not meant to be consumed as a package dependency (but only as standalone cli) they don't adhere to normal semantic versioning. I've learned from this and put fixed versions for these dependencies so it can't happen again.
Running jaspr update
and then dart pub upgrade
should fix this issue.
Description
Using the
server
template to create a project results in a broken project.Steps To Reproduce
jaspr create -t server test
cd test
jaspr serve -v
output
Whether Jaspr web compilers are enabled doesn't matter.
Doctor Output
[✓] Jaspr CLI (Version 0.9.2) • Dart Version 3.1.3 (stable) (Tue Sep 26 14:25:13 2023 +0000) on "linux_x64" at ~/dev/flutter/bin/cache/dart-sdk/bin/dart • Running on linux Linux 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 - Locale de_DE.UTF-8 • Analytics: Disabled
[✓] Current Project • Dependencies on core packages: • jaspr: ^0.9.2 • Uses server-side rendering: true • Uses experimental compilers: false • Uses flutter embedding: false
Seems like the build runner daemon is tripping over something. The exception is thrown in the build daemon client
Here are some other references I've found: