-
-
Notifications
You must be signed in to change notification settings - Fork 268
Component cannot be used as a JSX component #432
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
Comments
@DeckerCHAN, which version of @types/react do you use? |
Please try to update to the latest version. |
After adding ^ to all the versions, the problem is still there. "dependencies": {
"loader-utils": "^3.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "^5.0.1",
"@coreui/coreui": "^5.3.2",
"@coreui/react": "^5.5.0"
},
"devDependencies": {
"@types/react": "^18.2.38",
"@types/react-dom": "^18.2.15",
"typescript": "^4.4.4"
}, Even using all the latest won't fix the issue😔 : "dependencies": {
"loader-utils": "latest",
"react": "latest",
"react-dom": "latest",
"react-scripts": "latest",
"@coreui/coreui": "latest",
"@coreui/react": "latest"
},
"devDependencies": {
"@types/react": "latest",
"@types/react-dom": "latest",
"typescript": "latest"
}, You can take a look at here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have got an error on
create-react-app
project with the latest core UI.How to reproduce:
"@coreui/coreui": "^5.3.2", "@coreui/react": "^5.5.0",
to package.json.CButton
in theApp.tsx
Got compile error:
https://codesandbox.io/p/sandbox/jr4t78?file=%2Fsrc%2FApp.tsx%3A9%2C8
The text was updated successfully, but these errors were encountered: