bitjson/typescript-starter

New project has errors in node_modules

mcclowes opened this issue · 1 comments

  • I'm submitting a ...
    [X] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

Having just created a new project, there are a number of errors within node_modules.

  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

Repo for reproducing: https://github.com/mcclowes/ts-node-template

npm run watch:build presents the following errors:

[15:51:29] Starting compilation in watch mode...

node_modules/@types/node/ts4.8/test.d.ts:881:34 - error TS1005: '?' expected.

881             : F extends abstract new(...args: any) => infer T ? T
                                     ~~~

node_modules/@types/node/ts4.8/test.d.ts:881:63 - error TS1005: ':' expected.

881             : F extends abstract new(...args: any) => infer T ? T
                                                                  ~

node_modules/@types/node/ts4.8/test.d.ts:882:13 - error TS1005: ',' expected.

882             : unknown,
                ~

node_modules/@types/node/ts4.8/test.d.ts:884:34 - error TS1005: '?' expected.

884             : F extends abstract new(...args: infer Y) => any ? Y
                                     ~~~

node_modules/@types/node/ts4.8/test.d.ts:884:63 - error TS1005: ':' expected.

884             : F extends abstract new(...args: infer Y) => any ? Y
                                                                  ~

node_modules/@types/node/ts4.8/test.d.ts:885:13 - error TS1005: ',' expected.

885             : unknown[],
                ~

node_modules/@types/node/ts4.8/test.d.ts:885:22 - error TS1005: ',' expected.

885             : unknown[],
                         ~

node_modules/@types/node/ts4.8/test.d.ts:886:5 - error TS1109: Expression expected.

886     > {
        ~

node_modules/@types/node/ts4.8/test.d.ts:890:24 - error TS1005: ',' expected.

890         arguments: Args;
                           ~

node_modules/@types/node/ts4.8/test.d.ts:894:35 - error TS1005: ',' expected.

894         error: unknown | undefined;
                                      ~

node_modules/@types/node/ts4.8/test.d.ts:900:39 - error TS1005: ',' expected.

900         result: ReturnType | undefined;
                                          ~

node_modules/@types/node/ts4.8/test.d.ts:904:21 - error TS1005: ',' expected.

904         stack: Error;
                        ~

node_modules/@types/node/ts4.8/test.d.ts:909:19 - error TS1005: ',' expected.

909         target: F extends abstract new(...args: any) => any ? F : undefined;
                      ~~~~~~~

node_modules/@types/node/ts4.8/test.d.ts:909:27 - error TS1005: ':' expected.

909         target: F extends abstract new(...args: any) => any ? F : undefined;
                              ~~~~~~~~

node_modules/@types/node/ts4.8/test.d.ts:909:36 - error TS1005: ',' expected.

909         target: F extends abstract new(...args: any) => any ? F : undefined;
                                       ~~~

node_modules/@types/node/ts4.8/test.d.ts:909:54 - error TS1005: '{' expected.

909         target: F extends abstract new(...args: any) => any ? F : undefined;
                                                         ~~

node_modules/@types/node/ts4.8/test.d.ts:909:63 - error TS1005: ',' expected.

909         target: F extends abstract new(...args: any) => any ? F : undefined;
                                                                  ~

node_modules/@types/node/ts4.8/test.d.ts:909:76 - error TS1005: ',' expected.

909         target: F extends abstract new(...args: any) => any ? F : undefined;
                                                                               ~

node_modules/@types/node/ts4.8/test.d.ts:913:22 - error TS1005: ',' expected.

913         this: unknown;
                         ~

[15:51:29] Found 19 errors. Watching for file changes.

Did you manage to fix these ?

See #248 (npm install typescript --save-dev)