diff --git a/packages/node-dev/commands/build.ts b/packages/node-dev/commands/build.ts index 0ff438920070d..a4d779e859f27 100644 --- a/packages/node-dev/commands/build.ts +++ b/packages/node-dev/commands/build.ts @@ -48,8 +48,8 @@ export class Build extends Command { this.log(`The nodes got build and saved into the following folder:\n${outputDirectory}`); - } catch (error) { - this.log(`\nGOT ERROR: "${error.message}"`); + } catch (error: any) { + this.log(`\nGOT ERROR: "${(error as Error).message}"`); this.log('===================================='); this.log(error.stack); return;