Next.js Discord

Discord Forum

typescript typo error

Answered
Sloth bear posted this in #help-forum
Open in Discord
Sloth bearOP
Hey, I'm encountering a strange TypeScript error. It works fine in development, but when I run npm run build, I get an error. Take a look at the image I've sent along with my /app/privacy.tsx code
Answered by Anay-208
is your code working fine in npm run dev
View full answer

7 Replies

Sloth bearOP
@Anay-208
Answer
Sloth bearOP
You mean npm run dev?
My code runs without any issues when I use npm run dev, but I run into a single problem during the npm run build process. Apart from that, everything else works fine.
create a issue on [nextjs github](https://github.com/vercel/next.js)
Sloth bearOP
I did fix it i just had to leave my Privacy component empty without any of interface not sure why 😅. But hey thanks for the help tho i appreciate it man