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报错 #49

Open
dylan-7 opened this issue Jul 28, 2023 · 0 comments
Open

npm run build报错 #49

dylan-7 opened this issue Jul 28, 2023 · 0 comments

Comments

@dylan-7
Copy link

dylan-7 commented Jul 28, 2023

环境:
node: v18.16.0
npm: 9.5.1

执行npm run build报错,如下:

[email protected] build
npm run build:cjs && npm run build:esm

[email protected] build:cjs
rimraf ./lib && tsc --module commonjs --outDir lib

node_modules/@types/babel__traverse/index.d.ts:321:9 - error TS1110: Type expected.

321 [k: ${string}|${string}]: VisitNode<S, Node>;
~~~

node_modules/@types/babel__traverse/index.d.ts:321:30 - error TS1005: ';' expected.

321 [k: ${string}|${string}]: VisitNode<S, Node>;
~

node_modules/@types/babel__traverse/index.d.ts:321:31 - error TS1128: Declaration or statement expected.

321 [k: ${string}|${string}]: VisitNode<S, Node>;
~

node_modules/@types/babel__traverse/index.d.ts:321:51 - error TS1005: '(' expected.

321 [k: ${string}|${string}]: VisitNode<S, Node>;
~

node_modules/@types/babel__traverse/index.d.ts:322:1 - error TS1128: Declaration or statement expected.

322 };
~

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

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

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

832 ? T
~

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

833 : unknown,
~

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

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

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

837 ? Y
~

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

838 : unknown[],
~

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

838 : unknown[],
~

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

839 > {
~

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

843 arguments: Args;
~

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

847 error: unknown | undefined;
~

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

853 result: ReturnType | undefined;
~

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

857 stack: Error;
~

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

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

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

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

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

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

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

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

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

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

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

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

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

866 this: unknown;

@dylan-7 dylan-7 changed the title nom run build报错 npm run build报错 Jul 28, 2023
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