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

New project has errors in node_modules #278

Open
mcclowes opened this issue Jan 17, 2024 · 1 comment
Open

New project has errors in node_modules #278

mcclowes opened this issue Jan 17, 2024 · 1 comment

Comments

@mcclowes
Copy link

  • 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.
@TBG-FR
Copy link

TBG-FR commented Jan 30, 2024

Did you manage to fix these ?

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

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

2 participants