ngokevin/aframe-react-boilerplate

Module build failed: ReferenceError: Promise is not defined

RSpace opened this issue · 2 comments

I'm getting this error when I run npm run serve-js. It's fixable by adding require('es6-promise').polyfill(); to webpack.config.js and a dev dependency on es6-promise. Should I submit a pull request for this workaround, or is there a better to fix it?

Good catch. Yeah, that sounds good to me. You could also try require('babel-polyfill') since that's already a dep.

A PR would be great 😃