You're importing babel-polyfill in your codebase, but it's listed under devDependencies. Error occurs unless user has babel-polyfill already installed.
EDIT: It would be better to use transform-runtime instead for reasons here as well as avoiding conflicts with existing codebases that use babel-polyfill. I'm having an issue as I'm using babel v7.
You're importing
babel-polyfill
in your codebase, but it's listed underdevDependencies
. Error occurs unless user hasbabel-polyfill
already installed.EDIT: It would be better to use
transform-runtime
instead for reasons here as well as avoiding conflicts with existing codebases that usebabel-polyfill
. I'm having an issue as I'm using babel v7.