From 45f1edd4cde4ad8c0190f00efdc75505385a7f69 Mon Sep 17 00:00:00 2001 From: Thomas Reichling Date: Sun, 24 Mar 2019 11:25:15 +0100 Subject: [PATCH 1/3] chore(readme): Add await nuxt.ready() --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6acacb9d7a..bf60042cfd 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,7 @@ let config = require('./nuxt.config.js') config.dev = (process.env.NODE_ENV !== 'production') let nuxt = new Nuxt(config) +await nuxt.ready() // Start build process (only in development) if (config.dev) { From be72f15c6bf0b5566526c5b6ec557d589ea8e1ea Mon Sep 17 00:00:00 2001 From: Thomas Reichling Date: Sun, 24 Mar 2019 11:36:15 +0100 Subject: [PATCH 2/3] Removed await because of top-level code --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bf60042cfd..12908f359b 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ let config = require('./nuxt.config.js') config.dev = (process.env.NODE_ENV !== 'production') let nuxt = new Nuxt(config) -await nuxt.ready() +nuxt.ready() // Start build process (only in development) if (config.dev) { From 87b53674e4c02a6cdd3220843a66ca17f17275e3 Mon Sep 17 00:00:00 2001 From: Thomas Reichling Date: Sun, 24 Mar 2019 12:21:51 +0100 Subject: [PATCH 3/3] Added .catch(console.error) to nuxt.ready() --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 12908f359b..e3c683cd24 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ let config = require('./nuxt.config.js') config.dev = (process.env.NODE_ENV !== 'production') let nuxt = new Nuxt(config) -nuxt.ready() +nuxt.ready().catch(console.error) // Start build process (only in development) if (config.dev) {