Answer the question
In order to leave comments, you need to log in
Why is there an error when building webpack?
When building (npm run build) with .babelrc config
{
"presets": [
//["env", { "modules": false }],
"stage-3"
],
"plugins": ["transform-async-to-generator"]
}
ReferenceError: regeneratorRuntime is not defined
at a.sendRouter (Index.vue:221)
at at (vue.esm.js:1863)
at HTMLButtonElement.n (vue.esm.js:2188)
at HTMLButtonElement.i._wrapper (vue.esm.js:7565)
Answer the question
In order to leave comments, you need to log in
Leave the line uncommented and install babel/polyfill
npm install --save @babel/polyfill
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question