diff --git a/packages/node-dev/src/Build.ts b/packages/node-dev/src/Build.ts index 4b470a6ff164f..bfb9953efd3c3 100644 --- a/packages/node-dev/src/Build.ts +++ b/packages/node-dev/src/Build.ts @@ -104,8 +104,8 @@ export async function buildFiles (options?: IBuildOptions): Promise { process.on('exit', () => { buildProcess.kill(); }); - } catch (error) { - let errorMessage = error.message; + } catch (error: Error) { + let errorMessage: string = error.message; if (error.stdout !== undefined) { errorMessage = `${errorMessage}\nGot following output:\n${error.stdout}`;