-
-
Notifications
You must be signed in to change notification settings - Fork 335
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
2.1.9 broken <ThemeProvider />: ERROR(TypeScript) Type 'ReactNode' is not assignable to type 'NonNullable<ReactNodeLike>'. #593
Comments
Same issue for me as well. The error detail:
|
also have this same issue isnt material tailwind compatible with typescript? |
I have the same problem and couldn't figure out the cause, but downgrading to 2.1.8 seems to work for me. |
Same issue, downgrade to 2.1.8 works. |
This basic issue is from 2 weeks ago, pull requests are not being merged, and so on. Sorry, but I recommend not using this library. |
Can't you fix this basic issue and create a PR? |
This configuration worked for me {
"name": "nextjs-tailwind-course-landing-page",
"version": "1.0.0",
"private": true,
"author": "Creative Tim",
"license": "See license in https://www.creative-tim.com/license",
"homepage": "https://demos.creative-tim.com/nextjs-tailwind-course-landing-page",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@heroicons/react": "2.0.18",
"@material-tailwind/react": "2.1.8",
"next": "13.4.0",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/node": "20",
"@types/react": "18.2.22",
"@types/react-dom": "18",
"autoprefixer": "10",
"eslint": "8",
"eslint-config-next": "13.5.4",
"postcss": "8",
"tailwindcss": "3",
"typescript": "5.2.2"
}
} Installing the @types/react verion 18.2.22 worked for me |
@types/react verion 18.2.22 breaks other things for me. |
Last release throws on hover import @Material...:
The text was updated successfully, but these errors were encountered: