debian 11 nodejs 12或者14 用cli全新安装后
npn run dev后提示
[2:31:50 PM] Starting compilation in watch mode...
node_modules/@nestjs/typeorm/dist/common/typeorm.decorators.d.ts:2:10 - error TS2305: Module '"typeorm"' has no exported member 'DataSource'.
2 import { DataSource, DataSourceOptions } from 'typeorm';
~~~~~~~~~~
node_modules/@nestjs/typeorm/dist/common/typeorm.decorators.d.ts:2:22 - error TS2305: Module '"typeorm"' has no exported member 'DataSourceOptions'.
2 import { DataSource, DataSourceOptions } from 'typeorm';
~~~~~~~~~~~~~~~~~
node_modules/@nestjs/typeorm/dist/common/typeorm.utils.d.ts:3:10 - error TS2305: Module '"typeorm"' has no exported member 'DataSource'.
3 import { DataSource, DataSourceOptions } from 'typeorm';
~~~~~~~~~~
node_modules/@nestjs/typeorm/dist/common/typeorm.utils.d.ts:3:22 - error TS2305: Module '"typeorm"' has no exported member 'DataSourceOptions'.
3 import { DataSource, DataSourceOptions } from 'typeorm';
~~~~~~~~~~~~~~~~~
node_modules/@nestjs/typeorm/dist/interfaces/typeorm-options.interface.d.ts:2:10 - error TS2305: Module '"typeorm"' has no exported member 'DataSource'.
2 import { DataSource, DataSourceOptions } from 'typeorm';
~~~~~~~~~~
node_modules/@nestjs/typeorm/dist/interfaces/typeorm-options.interface.d.ts:2:22 - error TS2305: Module '"typeorm"' has no exported member 'DataSourceOptions'.
2 import { DataSource, DataSourceOptions } from 'typeorm';
~~~~~~~~~~~~~~~~~
node_modules/@nestjs/typeorm/dist/typeorm.module.d.ts:2:10 - error TS2305: Module '"typeorm"' has no exported member 'DataSource'.
2 import { DataSource, DataSourceOptions } from 'typeorm';
~~~~~~~~~~
node_modules/@nestjs/typeorm/dist/typeorm.module.d.ts:2:22 - error TS2305: Module '"typeorm"' has no exported member 'DataSourceOptions'.
2 import { DataSource, DataSourceOptions } from 'typeorm';
~~~~~~~~~~~~~~~~~
src/modules/admin/system/online/online.service.ts:63:49 - error TS2314: Generic type 'RemoteSocket<EmitEvents, SocketData>' requires 2 type argument(s).
63 async findSocketIdByUid(uid: number): Promise<RemoteSocket> {
~~~~~~~~~~~~~~~~~~~~~
[2:32:08 PM] Found 9 errors. Watching for file changes.