tnga / react-aframe

Build virtual and augmented reality experiences with React and A-Frame.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gatsby build

slaymantis opened this issue · comments

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

  • aframe-master.js:71430
    [pascall-lolly-scramble]/[aframe]/dist/aframe-master.js:71430:1