后端本地运行项目报 ts 错误,求助
Opened this issue · 1 comments
shubinla commented
按照 rx-models 文档 流程,运行了之后报错。
node: v16.10.0
pnpm: v7.9.0
@codebdy 大佬求助
DeprecationWarning: 'getMutableClone' has been deprecated since v4.0.0. Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`.
DeprecationWarning: 'createLiteral' has been deprecated since v4.0.0. Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead.
node_modules/.pnpm/@types+eslint@8.44.2/node_modules/@types/eslint/index.d.ts:552:44 - error TS2694: Namespace '"/Users/10005483/Documents/repo/rx-models/node_modules/.pnpm/@types+estree@0.0.46/node_modules/@types/estree/index"' has no exported member 'PrivateIdentifier'.
552 PrivateIdentifier?: ((node: ESTree.PrivateIdentifier & NodeParentExtension) => void) | undefined;
~~~~~~~~~~~~~~~~~
node_modules/.pnpm/@types+eslint@8.44.2/node_modules/@types/eslint/index.d.ts:553:51 - error TS2694: Namespace '"/Users/10005483/Documents/repo/rx-models/node_modules/.pnpm/@types+estree@0.0.46/node_modules/@types/estree/index"' has no exported member 'PrivateIdentifier'.
553 "PrivateIdentifier:exit"?: ((node: ESTree.PrivateIdentifier & NodeParentExtension) => void) | undefined;
~~~~~~~~~~~~~~~~~
node_modules/.pnpm/@types+eslint@8.44.2/node_modules/@types/eslint/index.d.ts:558:45 - error TS2694: Namespace '"/Users/10005483/Documents/repo/rx-models/node_modules/.pnpm/@types+estree@0.0.46/node_modules/@types/estree/index"' has no exported member 'PropertyDefinition'.
558 PropertyDefinition?: ((node: ESTree.PropertyDefinition & NodeParentExtension) => void) | undefined;
~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/@types+eslint@8.44.2/node_modules/@types/eslint/index.d.ts:559:52 - error TS2694: Namespace '"/Users/10005483/Documents/repo/rx-models/node_modules/.pnpm/@types+estree@0.0.46/node_modules/@types/estree/index"' has no exported member 'PropertyDefinition'.
559 "PropertyDefinition:exit"?: ((node: ESTree.PropertyDefinition & NodeParentExtension) => void) | undefined;
~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/@types+eslint@8.44.2/node_modules/@types/eslint/index.d.ts:568:38 - error TS2694: Namespace '"/Users/10005483/Documents/repo/rx-models/node_modules/.pnpm/@types+estree@0.0.46/node_modules/@types/estree/index"' has no exported member 'StaticBlock'.
568 StaticBlock?: ((node: ESTree.StaticBlock & NodeParentExtension) => void) | undefined;
~~~~~~~~~~~
node_modules/.pnpm/@types+eslint@8.44.2/node_modules/@types/eslint/index.d.ts:569:45 - error TS2694: Namespace '"/Users/10005483/Documents/repo/rx-models/node_modules/.pnpm/@types+estree@0.0.46/node_modules/@types/estree/index"' has no exported member 'StaticBlock'.
569 "StaticBlock:exit"?: ((node: ESTree.StaticBlock & NodeParentExtension) => void) | undefined;
~~~~~~~~~~~
src/mailer/mailer.clients-pool.ts:2:24 - error TS2307: Cannot find module 'socket.io' or its corresponding type declarations.
2 import { Socket } from 'socket.io';
~~~~~~~~~~~
src/mailer/mailer.gateway.ts:6:32 - error TS2307: Cannot find module 'socket.io' or its corresponding type declarations.
6 import { Socket, Server } from 'socket.io';
~~~~~~~~~~~
src/rx-event/rx-event.gateway.ts:3:24 - error TS2307: Cannot find module 'socket.io' or its corresponding type declarations.
3 import { Server } from 'socket.io';
~~~~~~~~~~~
[11:11:38 AM] Found 9 errors. Watching for file changes.
codebdy commented
本项目不维护了,别折腾了