#Jannik

1 messages · Page 1 of 1 (latest)

edgy sunBOT
astral lion
#

Hi! Let me help you with this.

#

How are you importing this file?

sick marten
#

this an api route in nextjs, i got if from an example

astral lion
#

This is a Next.js-related error, and I am not very familiar with it.
I see this is a backend-related code, but why is the error referring to React?

#

But again my question:

How are you importing this file?

#

And where?

sick marten
#

my bad, it has to be named route.ts instead of page.ts 😄

#

sorry

astral lion
#

Happens to everyone! Glad you solved it. Please, let me know if you have any other questions.