#Getting constant type errors why?

1 messages · Page 1 of 1 (latest)

sick needle
#

I'm currently using "next": "16.1.1", "nodemailer": "^7.0.12","react-icons": "^5.5.0", and

"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.1.1",
"tailwindcss": "^4",
"tw-animate-css": "^1.4.0",
"typescript": "^5"
}
I'm getting types errors all over the project, I tried install the type as dev dependencies for example pnpm --save-dev @types/nodemailers the return is Command "@types/nodemailer" not found and is the same for react icons library, same thing happens with others libraries like next-intl and next-international

Help

half joltBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

lethal jungle
#

That's because many libraries are not fully compatible with React 19 and next 16 yet.

sick needle
#

Oh, I understand that, but what can I do then? Go back to a stable version 15?

lethal jungle
#

Yeah, that's the most recommended way.

sick needle
#

And thanks for the answer @lethal jungle

lethal jungle
#

I think you should try next 14, and react 18.

sick needle
#

I have one like that and since the vulnerability on next stable version of it, there's a dependecy that jumps to next 16 so there's also problems on that

#

But I have another next version 15 and works great