Next.js Discord

Discord Forum

Using path alias in route.ts

Unanswered
codepression posted this in #help-forum
Open in Discord
I'm having an issue with path aliases in route.ts files.

- When I use a path alias in a route.ts file, it complains about type declarations. When I just a relative path it doesn't complain.
- I added some screenshots showing the issue and a screenshot of a server-action where it works without issue.

0 Replies