From ca5c219053b268efd7ea2e9ca077cdba0514c345 Mon Sep 17 00:00:00 2001 From: atanasster Date: Sun, 19 Jul 2020 23:34:09 -0400 Subject: [PATCH] fix: only log assigned error --- integrations/nextjs-plugin/src/build.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integrations/nextjs-plugin/src/build.ts b/integrations/nextjs-plugin/src/build.ts index b0bf49b96..babf9d787 100644 --- a/integrations/nextjs-plugin/src/build.ts +++ b/integrations/nextjs-plugin/src/build.ts @@ -47,7 +47,9 @@ const store = new HMRStore(bundle); exports.store = store; `, err => { - console.error(err); + if (err) { + console.error(err); + } }, ); });