Closed mike-katz closed 1 month ago
{
"name": "myapp",
"version": "0.1.0",
"private": true,
"dependencies": {
"@material-tailwind/react": "^2.1.9",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"tailwindcss": "^3.4.3"
}
}
This is my package.json file
I got the solution
dont use "^" instead do this: "react": "18.2.0", "react-dom": "18.2.0",
I have a create new react app and setup only for material tailwind.
i got the issue on material tailwind.
the above error occurred in the component
typeerror: cannot read properties of null (reading 'usecontext')
any one can you please help me
Note: also one more think i have a change old @material-tailwind in node_module so it's work. so i think the issue is in new node_module