Skip to content

Fix the build error when "./absolute webpack" intermittently #526

@nadongguri

Description

@nadongguri

If you run "./absolute webpack" many times, you would see the error comming

$ ./absolute webpack
[14:04:32] Requiring external module ts-node/register
[14:04:32] Using gulpfile /absolute/gulpfile.ts
[14:04:32] Starting 'webpack'...
ts-loader: Using typescript@2.6.1 and /absolute/tsconfig.json

stream.js:74
throw er; // Unhandled stream error in pipe.
^
Error: absolute/node_modules/@types/supertest/index.d.ts
(27,20): error TS2304: Cannot find name 'RegExp' /absolute/node_modules/@types/supertest/index.d.ts

....

I think this error is due to the line in push_service_worker.ts.

/// <reference path="../../node_modules/typescript/lib/lib.webworker.d.ts"/>

When I removed that line or modifying from /// to // made no command error.
I'm not sure why that leads to the build error but if owners can agree of my experimental test,
I will upload the patch.

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