sst: Error in sst dev Command: Could not resolve "path-to-regexp"
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:
tothgergo@Toth-MacBook-Pro:~/Projects/demo-ion-nextjs|⇒ npm run dev
> demo-ion-nextjs@0.1.0 dev
> sst dev next dev
SST ❍ ion 0.0.542 ready!
➜ App: demo-ion-nextjs
Stage: tothgergo
Console: https://console.sst.dev/local/demo-ion-nextjs/tothgergo
~ Deploying
| Error .sst/platform/src/components/cloudflare/remix.ts:3:29: Could not resolve "path-to-regexp"
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’”.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 20 (8 by maintainers)
npm@10.8.2 node v22.5.1
i am having the same issue +1