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

npm run build failing #34

Open
erikh2000 opened this issue Mar 5, 2023 · 0 comments
Open

npm run build failing #34

erikh2000 opened this issue Mar 5, 2023 · 0 comments

Comments

@erikh2000
Copy link

erikh2000 commented Mar 5, 2023

Hi! Today, I made a fresh fork of wavefile and then executed...

git clone git@github.com:erikh2000/wavefile.git
cd wavefile
npm install
npm run build

The build fails with several error messages along these lines (can post the full spiel, if you like):

../../node_modules/@types/jest/index.d.ts:458:62 - error TS1005: ']' expected.

458     type NonFunctionPropertyNames<T> = keyof { [K in keyof T as T[K] extends Func ? never : K]: T[K] };

../../node_modules/@types/jest/index.d.ts:458:65 - error TS1005: ';' expected.

458     type NonFunctionPropertyNames<T> = keyof { [K in keyof T as T[K] extends Func ? never : K]: T[K] };
                                                                    ~

../../node_modules/@types/jest/index.d.ts:458:70 - error TS1005: ';' expected.

458     type NonFunctionPropertyNames<T> = keyof { [K in keyof T as T[K] extends Func ? never : K]: T[K] };
                                                                         ~~~~~~~

../../node_modules/@types/jest/index.d.ts:458:94 - error TS1005: ';' expected.

458     type NonFunctionPropertyNames<T> = keyof { [K in keyof T as T[K] extends Func ? never : K]: T[K] };
                                                                                                 ~

../../node_modules/@types/jest/index.d.ts:458:95 - error TS1128: Declaration or statement expected.

458     type NonFunctionPropertyNames<T> = keyof { [K in keyof T as T[K] extends Func ? never : K]: T[K] };

This output is coming more specifically from executing the tsc ./test/TypeScript/index.ts command in the test-tsc package.json script:

No preceding commands, e.g. rollup -c, are outputting failure messages.

I promise I didn't change anything in my fork. Any ideas on how to fix? Maybe there is an uncommitted file on somebody's local directory, e.g. tsconfig.json? Or a global NPM package that is relied upon? Or I'm building with the wrong version of node or npm?

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