Skip to content

error is null #151

@steinybot

Description

@steinybot

The type from node child_process is:

    interface SpawnSyncReturns<T> {
        pid: number;
        output: Array<T | null>;
        stdout: T;
        stderr: T;
        status: number | null;
        signal: NodeJS.Signals | null;
        error?: Error | undefined;
    }

but I am getting:

TypeError: Cannot read properties of null (reading 'message')

on something like:

    if (subprocess.error !== undefined) {
      this.error = new WebpackError(subprocess.error.message);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions