tnga / react-aframe

Build virtual and augmented reality experiences with React and A-Frame.
MIT License
12 stars 6 forks source link

Gatsby build #3

Open slaymantis opened 2 years ago

slaymantis commented 2 years ago

Great work on this. Works well

I am also trying to get it working in gatsby but I get that webpack error. I have also tried installing browser-monads but it didn't help It works with gatsby develop but not when you try build it

71428 | },{"../core/geometry":132,"../lib/three":179}],177:[function(dereq,module,exports){ 71429 | // Polyfill Promise.

71430 | window.Promise = window.Promise || dereq('promise-polyfill'); | ^ 71431 | 71432 | // WebVR polyfill 71433 | // Check before the polyfill runs.

WebpackError: ReferenceError: window is not defined