Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error is null #151

Open
steinybot opened this issue Sep 11, 2022 · 0 comments
Open

error is null #151

steinybot opened this issue Sep 11, 2022 · 0 comments

Comments

@steinybot
Copy link

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);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant