-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Error in sst dev Command: Could not resolve "path-to-regexp" #4414
Comments
+1 |
does wiping the |
@tothgBudapest can I see your |
I am also getting this error, please advise how to resolve |
@jaapmvermeer what package manager do you use? |
npm@10.8.2 |
We didn't have the issue with |
thanks for looking into this. I am basically trying to follow the sst guide:
start the dev environment: but give other error when starting |
@jaapmvermeer There's a bug with Node 22.5 (see nodejs/node#53934). Let me know if it works with 22.4.* or earlier. |
tried with 21.7.3 and have same results. I noticed another error in the log file:
Attaching the log file |
I wiped my Mac and started with a clean install and I no longer haver the issue. Thanks for your time and assistance. |
i am having the same issue +1 |
what did you wipe exactly ? |
I think I had some kind of conflict with node versions, versions of node modules or other packages. I tried removing node, and all associated modules and libraries but after reinstalling I still had the issue so I decided to apply more drastic measure and using the Erase Assistant I reset my Mac to factory settings. This basically removes all content, settings, apps, user accounts and data. As I have all my files in the cloud, I only needed to reinstall some applications. This might not be the best approach for you but after a week of trying to find the underlying issue without success, this did the trick for me. |
yes it happened when using yarn |
Possibly related? |
the user's package manager is not responsible for anything inside |
In my case the node_modules folder inside .sst did not exist and the solution was to run |
I'm encountering an error when running the sst dev command in my Next.js project using the Serverless Stack (SST). The error message indicates that the path-to-regexp module could not be resolved. Below are the details:
Environment:
OS: macOS
Node.js version: 22.5.0
npm version: 10.8.2
SST version: 0.0.542
Expected Behavior:
The development server should start without any errors, and the application should be deployed successfully.
Actual Behavior:
The deployment fails with the error: "Could not resolve 'path-to-regexp'".
The text was updated successfully, but these errors were encountered: