Closed tklee1975 closed 2 years ago
I solved the above problem by fixing the 'package.json' and reloading the package. It is related to the version mismatch.
Here're the detail steps: Add the following in the package.json:
[solved]
add the follow to package.json
"resolutions": {
"@types/react": "17.0.2",
"@types/react-dom": "17.0.2"
}
and run yarn
again to update the packages
and run tsc
to test if the problem still exists or not
When I compile my code using
tsc
, the DatGui showing is not a valid JSX element. the output is like this: