next.config.ts
Answered
American posted this in #help-forum
AmericanOP
Hello
The docs states that
But when I try to use it, I get this error:
The docs states that
You can use TypeScript and import types in your Next.js configuration by using next.config.ts.
But when I try to use it, I get this error:
Error: Configuring Next.js via 'next.config.ts' is not supported. Please replace the file with 'next.config.js' or 'next.config.mjs'
5 Replies
@American Hello
The docs states that
> You can use TypeScript and import types in your Next.js configuration by using next.config.ts.
But when I try to use it, I get this error:
> Error: Configuring Next.js via 'next.config.ts' is not supported. Please replace the file with 'next.config.js' or 'next.config.mjs'
next.config.ts is only available from next 15
Answer
it doesnt make sense that the documentation doesnt say anything about that, but it is what it is
so u could try it out via next@canary
AmericanOP
I see, thank you!