Replies: 1 comment
-
I just turned off typescript in the file, and it worked fine |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Has anyone successfully integrated mind-ar with React with TypeScript? I am attempting to do this but I'm getting stuck. I renamed the
MindARViewer.js
toMindARViewer.tsx
to start making any necessary updates. The initial issue was with A-Frame, where TypeScript generated errors around the A-Frame component tags<a-scene>
,<a-entity>
, etc. I tried installing@types/aframe
, but it doesn't seem to include some needed references, like<a-camera>
. Looked around but found no immediate solution to that. I renamed the MindARView file back to.js
and I am able to access my app, and thesceneRef.current
object seems to be set correctly, but it has nosystems
. SosceneEl.systems["mindar-image-system"]
returns undefined.Has anyone successfully integrated Mind-AR with a React/TypeScript project or can anyone suggest a potential path forward?
Beta Was this translation helpful? Give feedback.
All reactions