-
Notifications
You must be signed in to change notification settings - Fork 29
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
Failed to get workspaces: [Error: ENOENT: no such file or directory, scandir ''] #4
Comments
following as I got the same error |
+1 On Ubuntu Linux |
+1 I get the same error! On MacOS |
Thank you @zixinzuofo for the pointer... Install dotenv (if not already installed): Create a .env File (if it doesn’t exist) in the root of this project folder and add your workspaceStorage path - this is mine: Load the .env File in your route.ts: Add this line at the top of the file to load environment variables: Access the Variable: The route.ts will now read the value of WORKSPACE_PATH from .env using the original code: This got it working for me until someone finds a better fix Marc |
Yeah this works on linux, thx guys!: WORKSPACE_PATH=~/.config/Cursor/User/workspaceStorage npm run dev |
I'm on macOS. I noticed that I needed to both set and I needed to set the Using a But from
and it works! |
Thank you @jmpavlick. That was enough to fix the issue for me on macOS. |
a fix has been merged, let me know if still an issue |
I still experienced this issue on Windows 11 but it worked after running |
Hi
Running on Windows11 Version 10.0.22621 Build 22621 I get this error despite the workspaces existing in the autodetected and configured workspaceStorage location
The link just displays
Here is the configuration page
File explorer confirming the workspaces exits in this location
And the next-server output
Any idea what causes this error?
Marc
The text was updated successfully, but these errors were encountered: