作者:海豚青春_407 | 来源:互联网 | 2024-09-25 12:42
1234567891011[Show/hide message details.] ReferenceError: regeneratorRuntime is not definedapp.js li
1 2 3 4 5 6 7 8 9 10 11
| [Show/hide message details.] ReferenceError: regeneratorRuntime is not defined
app.js line 9278 > eval:1678:7
mutate
vue-apollo.esm.js:1667
mutate self-hosted:981:17 submit
PasswordReset.vue:65
invoker
vue.runtime.esm.js:2023
withMacroTask/fn._withTask
vue.runtime.esm.js:1822 |
该提问来源于开源项目:vuejs/vue-apollo
Fixed for me by doing:
1 2
| yarn add --dev /plugin-transform-runtime
yarn add --dev /core |
and then in babel.config.js:
1 2 3 4 5 6
| module.exports = {
presets: ['/app'],
plugins: [
"/transform-runtime"
]
} |