Module build failed: ReferenceError: Promise is not defined
RSpace opened this issue · 2 comments
RSpace commented
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?
ngokevin commented
Good catch. Yeah, that sounds good to me. You could also try require('babel-polyfill')
since that's already a dep.
ngokevin commented
A PR would be great 😃