Repository navigation
Error: SDK root directory not found #156
Description
Activity
sadly this project is abandoned / not maintained.
@DarkHeros09 Not sure why you think that..
@shenhuanet Did you enable Developer Mode in Settings to allow non-admin users to create symlinks?
I have the same issue.
Setup:
- OS: Windows 11
- Developer mode is ON
- Tested on VSCode and Antigravity
The error happens only when trying to run/build the app on Chrome or Edge. It works well when the target is Windows.
I validated the symlink flutter_web_sdk exists in the path.I upvoted because I also suffered this problem on Windows when trying to build a web app
Reacted by Felipe Morschel and Cristian de MellosHey everyone here. Maybe this can be fixed upstream on the Dart SDK (if this is right):
- Flutter Widget Preview error - VS Code flutter/flutter#184389 (comment)
- Support
Link.existsdart-lang/sdk#63016
If it can't, we may need to make
purostop creating symlinks for those files/folders in precache.Reacted by 神话 and Cristian de Mellos@FMorschel Thank you for your reply. I see that you have encountered this problem before, and I will try to solve it following your guidance.
I've opened the SDK issue linked above a few hours ago. I'd first wait a few more hours to see what they'll say about my request.
But the only guidance I can give right now is to keep using something other than
puroor to try and open a PR that avoids thecachefolder inside the enviroments to replaceflutter_web_sdkwith a symlink.I also encountered this issue and have been playing around with different flutter versions. This issue seems to have been introduced with dart 3.11 / flutter 3.41.
So, depending on your project, downgrading to flutter 3.38 could be a temporary workaround.
For a stable environment:
puro downgrade stable 3.38.10Hi everyone! I have the same issue...
Setup:
OS: Windows 11
Developer mode is ON
Tested on VSCodeThe error happens only when trying to run/build the app on Chrome.
For anyone who is struggling with this and wants to use the latest Flutter version with Puro, I suggest cloning my fork (#160), building the executable, swapping with the executable under
~/.puro/bin/and then (not needed anymoredeleting that) explicitly runningflutter_web_sdklink beforeflutter precache --web.Reacted by 0blazeReacted by Cristian de Mellos
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsBugs
As shown in the image, the error message indicates that the SDK cannot be found.
Furthermore, the files and folders in the cache have all been converted into shortcuts, ending with the .symlink extension. What could be the problem?