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
[flutter_tools] missing client.js file from dwds #53644
Comments
Does |
Hi jmagman, Thanks for replay, I have update the issue descriptions and provide full logs. When the issue occurs, the dwds is not in that folder:
|
Can we also get your pubspec.yaml? |
This is definitely odd. We're already unconditionally running a (This should probably be updated to only do so when .packages or the files are missing, but that is unrelated). I wonder if this is the revenge of the pub cache override we've been doing, or something odd with Isolate package resolution |
@jmagman I'm going to take a look at this one, since this is a "shouldn't happen" sort of issue in the tool |
@jonahwilliams Optimistically putting this under April, but feel free to move around. |
I had a similar problem. Switching to the beta branch fixed the issue for me.
Then try and rebuild and run your web app. |
This has also been reported on StackOverflow. The original comment could be boiled down to:
For me it started appearing after I had cleared my cache. The |
This comment was marked as abuse.
This comment was marked as abuse.
same issue here. Debug Output:
I tried the following commands but nothing changed: Command Output:
|
adding the following in the pubspec.yaml worked for me. I am using beta channel. |
Just tried that, did not really help because flutter_tools dependet on But looking into the pubspec.yaml of flutter_tools i found a work-around which should work with any version of dwds:
|
adding the following in the pubspec.yaml worked for me. I am using beta channel.
then run command:
|
I had the same issue, beta channel 1.18. All I needed to do was run |
JESUS!!! It worked for me too! But why?! Can someone explain it? I had 5 different projects, all were running but one. |
…che tool pub dependencies (#65814) If the tool is downloaded from a precompiled snapshot, or if the backing source files in the pub cache are deleted, the dwds debugging functionality will break as the client.js file cannot be located. Instead use the PackageConfig to verify that package location, downloading if it is missing. Override the dwds middleware to avoid Isolate.resolvePackageUri Fixes #53644 Fixes #65475
…che tool pub dependencies (flutter#65814) If the tool is downloaded from a precompiled snapshot, or if the backing source files in the pub cache are deleted, the dwds debugging functionality will break as the client.js file cannot be located. Instead use the PackageConfig to verify that package location, downloading if it is missing. Override the dwds middleware to avoid Isolate.resolvePackageUri Fixes flutter#53644 Fixes flutter#65475
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
flutter config --enable-web
;flutter create demo123
;/Users/zzd/flutter/.pub-cache
folder;(Because they are caches, I think it is OK to delete at any time.)
cd demo123
and Runflutter pub get
;flutter run -d chrome
;Logs
flutter doctor -v
Related to #52931
The text was updated successfully, but these errors were encountered: