This engine is super awesome and I wanted to learn how to use it and apply it to creating my own portfolio project that I’m working on.
I’m using the Unity Engine integration and wanted to deploy it as a react app, but I get the error above in the JSX that’s returning in App.tsx file.
I’ve attempted to install via npm ‘npm i’ and that doesn’t fix the error. Removing the offending code seems to resolve the problem and render my application in the browser and it works, but I’m not able to add div/button/p elements from html into the App.tsx.
I apologize if I’m just missing something, but I can’t seem to think of what it might be.
Apologies if this has been asked before and thank you. I’ve attached an image of the code with the error.
I did check that, but it seems that there was a push to the repo that fixed it for that particular case, but for this it seems as though it hasn’t been fixed.
I just create a Unity project using either the samples or a scene from scratch and it gives me the errors described above.
I can reproduce the errors above - those are related to the renderer being created lazily now - I have fixed it locally and will publish a new version in a little bit. Just looking into the JSX errors at the moment - they where definitely not there last time. It also seems like other people have similar issues (with other react+vite projects) Property 'div' does not exist on type 'JSX.IntrinsicElements'. · Issue #14011 · vitejs/vite · GitHub
A new version is out + updated the repository. Can you pull the update and re-install it (you can perform a “clean” installation of all packages by holding ALT and then clicking the Install button on the ExportInfo component). All errors should then be gone