-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Adding "paths" and "baseUrl" to tsconfig.json breaks module augmentations #5024
Comments
Update: Apparently moving the Is there a better solution? |
AFAIK, TypeScript does not concern itself where you declare a Module Augmentation in your project, as long as the file is included in your tsconfig's UPDATE: |
Yeah, I do the same thing. Is there any better solution? |
Question 💬
We just had this issue in
create-t3-app
,It seems like the declared next-auth.d.ts is overriding the initial next-auth types instead of augmenting them.We even tried declaring the the types from
next-auth/core/types
but doesn't seem to work still.Note that this problem only occurs when we use path aliases.
How to reproduce ☕️
To Reproduce
Steps to reproduce the behavior:
npx create-t3-app@next
src/pages/api/auth/[...nextauth].ts
fileContributing 🙌🏽
Yes, I am willing to help answer this question in a PR
The text was updated successfully, but these errors were encountered: