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); + } }, ); });