I\' ve come across this strange occurrence of:
ReferenceError: regeneratorRuntime is not defined
... which I\'ve managed to reproduce in a very minima
I know this has been answered but, unfortunately, they didn't fix the problem for me. what solved it was to import babel babel-polyfills inside the file
babel-polyfills
import "core-js/stable"; import "regenerator-runtime/runtime";
you can find it on the official babeljs documetation orat this article