Visitar URL original
error is null · Issue #151 · moxystudio/node-cross-spawn · GitHub
Skip to content

error is null #151

Open
Open

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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