-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
vue server
can not use async/await
#2648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
export default () { It should look like this: export default {
So we could discuss if eslint-loader should really be used in this scenario, but the app works. |
Reproduced on my machine. |
Is it necessary to manualy install babel ? my npm global node_modules is below there is only @vue/[email protected] and @vue/[email protected] install in @VUE I just uninstall them and reinstall this two. @vue/cli seem all right. npm i @vue/cli
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@vue\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"}) but @vue/cli-service-global warn again like blew
/// babel.config.js
module.exports = {
presets: [
'@vue/app',
],
}
|
vue
server can not use async/await
vue server
can not use async/await
So how do you use it? How did you configure it in babel.config.js @githoniel |
Uh oh!
There was an error while loading. Please reload this page.
Version
3.0.4
Node and OS info
Node 8.11.4/ Npm 6.4.1 / Windows 10
Steps to reproduce
I got warning below
then create a vue file
index.vue
atfer run
vue serve index.vue
get compile errorWhat is expected?
vue serve
supportasync/await
What is actually happening?
failed to compile
The text was updated successfully, but these errors were encountered: