pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.45k stars 290 forks source link

Parser Stand Alone Error - ReferenceError: Request is not defined #135

Open Parker-Bergen opened 2 years ago

Parker-Bergen commented 2 years ago

I am trying to parse a gltf object using the stand alone parse example, but am receiving a ReferenceError: Request is not defined I have attached photos of the code and the error. I have tried to install request and that did not change the output. Thanks

Screen Shot 2022-03-04 at 1 43 42 PM Screen Shot 2022-03-04 at 1 44 09 PM
nezz0746 commented 1 year ago

Facing the same issue here

dalhaan commented 1 year ago

That's because Request is a Web API and isn't available in Node.

The stand-alone parser is probably meant to only be used in the browser is my guess.