Integration in react component without iframe

Hi everyone,
i’m trying to integrate a playcanvas 3d model in a react component(without iframe) so i recreated de start_.js as a react component and load inside the the 2 json , so i can see the model but cannot interact with .
Uncaught ReferenceError: pc is not defined
at __game-scripts.js:1
this is the error i have ,
do you gave some idea ?
thanks all (and sorry for my english :slight_smile: )

Sounds like the playcanvas engine hasn’t been added before __game-scripts.js

thx to reply, so do you know how to fix ?

I don’t use react so I wouldn’t be able tell you. Also, I can’t see the project so I have no idea how it’s been setup. It just looks like the playcanvas engine script hasn’t been added to the document.