Giter Club home page Giter Club logo

nest-cnode's Introduction

nest-cnode

Nest Logo

Description

This is using the Nestjs imitation Cnode.

Installation

Currently runs with:

  • nodejs v8.11.1
  • mongodb v3.4.1
  • redis v3.2.1
  • nestjs v6.11.11

With this sample, you can :

  • Understand basic use of Nestjs, and store data with mongodb and redis
  • Use Nestjs with passport for authentication and third-party login Github

Getting Started

Environment Dependencies:

Clone this repository locally :

git clone https://github.com/jiayisheji/nest-cnode.git

Install dependencies with npm :

npm install

Set up .env file

You also need to set the env config.

For that, if you just create a file named .env in the directory and set the values like the following, the app will just work:

.env file

#
# config
#
HOST='localhost'
PORT=3000
STATIC_HOST=''
MINI_ASSETS=false

#
# system
#
SUPER_ADMIN='super_admin'
SESSION_SECRET='cnode'
AUTH_COOKIE_NAME='nest_cnode'
GITHUB_CLIENT_ID=myCoolClientId
GITHUB_CLIENT_SECRET=myCoolSecret

#
# access qn
#
QN_ACCESS_KEY='your access key'
QN_SECRET_KEY='your secret key'
QN_BUCKET='your bucket name'
# 如果vps在国外,请使用 http://up.qiniug.com/ ,这是七牛的国际节点
# 如果在国内,此项请留空
QN_UPLOAD_URL=''

#
# Multer upload dest
#
# 开发上传的src 生成上传dist
UPLOAD_LOCATION='src'

#
# mail
#
MAIL_HOST='smtp.126.com'
MAIL_PORT=25
MAIL_USER='[email protected]'
MAIL_PASS='club'

#
# database redis
#
# Redis Replica Set
REDIS_HOST='127.0.0.1'
REDIS_PORT=6379
REDIS_PASSWORD=''
REDIS_DB=0

#
# database mongoDB
#
# MongoDB Replica Set
MONGO_HOST="localhost"
MONGO_PORT=27017
MONGO_USER="cnode_admin"
MONGO_PASS="123456"
MONGO_DBS="db_cnode"

Running the app

# development
$ npm run start

# watch development mode
$ npm run start:dev

# production mode
 npm run prestart:prod && npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Dependencies

Dependencies are managed through package.json. In that file you'll find two sections:

dependencies

Package Description
bcryptjs Library for hashing and salting user passwords
dotenv Loads environment variables from .env file
ejs-mate Ejs template engine for Express
ioredis Redis ODM
mongoose MongoDB ODM
nodemailer Node.js library for sending emails
passport Simple and elegant authentication library for node.js
passport-local Sign-in with Username and Password plugin
passport-github Sign-in with Github plugin
typescript JavaScript compiler/type checker that boosts JavaScript productivity

devDependencies

Package Description
@types Dependencies in this folder are .d.ts files used to provide types
cross-env Cross platform setting of environment scripts
jest Testing library for JavaScript
nodemon Utility that automatically restarts node process when it crashes
supertest HTTP assertion library
ts-jest A preprocessor with sourcemap support to help use TypeScript wit Jest
ts-node Enables directly running TS files. Used to run copy-static-assets.ts
tslint Linter (similar to ESLint) for TypeScript files

Reference

  1. Awesome Nest
  1. NestJS Samples

nest-cnode's People

Contributors

dependabot[bot] avatar jiayisheji avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nest-cnode's Issues

Property 'engine' does not exist on type 'INestApplication'

本地代码:

async function bootstrap() {
  const app = await NestFactory.create(AppModule);

  // 初始化
  app.init();
   // 获取根目录 nest-cnode
   const rootDir = join(__dirname, '..');
   // 指定视图引擎 处理.html后缀文件
   app.engine('html', ejsMate);
   // 视图引擎
   app.set('view engine', 'html');
   // 配置模板(视图)的基本目录
   app.setBaseViewsDir(join(rootDir, 'views'));

  await app.listen(3000);
}

编译错误日志:

TSError: ⨯ Unable to compile TypeScript:
src/main.ts:14:8 - error TS2339: Property 'engine' does not exist on type 'INestApplication'.

14 app.engine('html', ejsMate);
~~~~~~
src/main.ts:16:8 - error TS2339: Property 'set' does not exist on type 'INestApplication'.

16 app.set('view engine', 'html');
~~~
src/main.ts:18:8 - error TS2339: Property 'setBaseViewsDir' does not exist on type 'INestApplication'.

18 app.setBaseViewsDir(join(rootDir, 'views'));

原因

我在官方文档上也没找到到INestApplication有这几个方法,怎么解决?

yarn完启动,111个error,怎么回事啊大佬?报错如下

node_modules/@typegoose/typegoose/lib/hooks.d.ts:8:41 - error TS2707: Generic type 'Query<ResultType, DocType, THelpers, RawDocType>' requires betw
een 2 and 4 type arguments.

8 declare type PreFnWithQuery = (this: Query, next?: (error?: Error) => void, done?: EmptyVoidFn) => void;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:29:3 - error TS2305: Module '"../tapable"' has no exported member 'Tapable'.

29 Tapable,
~~~~~~~

node_modules/@types/webpack/index.d.ts:940:23 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.

940 resolver: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:941:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.

941 factory: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:942:28 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.

942 beforeResolve: AsyncSeriesWaterfallHook;
~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:943:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.

943 afterResolve: AsyncSeriesWaterfallHook;
~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:944:27 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

944 createModule: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:945:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.

945 module: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:946:27 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

946 createParser: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:948:30 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

948 createGenerator: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:949:24 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

949 generator: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:958:33 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

958 evaluateTypeof: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:959:27 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

959 evaluate: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:960:37 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

960 evaluateIdentifier: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:961:44 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

961 evaluateDefinedIdentifier: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:962:47 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

962 evaluateCallExpressionMember: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:963:28 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

963 statement: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:964:30 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

964 statementIf: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:965:24 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

965 label: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:966:25 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

966 import: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:967:34 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

967 importSpecifier: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:968:25 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

968 export: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:969:31 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

969 exportImport: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:970:36 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

970 exportDeclaration: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:971:35 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

971 exportExpression: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:972:34 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

972 exportSpecifier: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:973:40 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

973 exportImportSpecifier: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:974:33 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

974 varDeclaration: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:975:36 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

975 varDeclarationLet: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:976:38 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

976 varDeclarationConst: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:977:36 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

977 varDeclarationVar: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:978:28 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

978 canRename: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:979:25 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

979 rename: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:980:27 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

980 assigned: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:981:25 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

981 typeof: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:982:29 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

982 importCall: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:983:23 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

983 call: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:984:32 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

984 callAnyMember: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:985:22 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

985 new: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:986:29 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

986 expression: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:987:38 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).

987 expressionAnyMember: HookMap;
~~~~~~~

node_modules/@types/webpack/index.d.ts:988:48 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

988 expressionConditionalOperator: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:989:44 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

989 expressionLogicalOperator: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:990:26 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.

990 program: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:999:28 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.

999 beforeResolve: AsyncSeriesWaterfallHook;
~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1000:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.

1000 afterResolve: AsyncSeriesWaterfallHook;
~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1001:33 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.

1001 contextModuleFiles: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1002:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.

1002 alternatives: AsyncSeriesWaterfallHook;
~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1022:21 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1022 unseal: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1023:19 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1023 seal: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1025:40 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1025 optimizeDependenciesBasic: SyncBailHook<Module[]>;
~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1026:35 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1026 optimizeDependencies: SyncBailHook<Module[]>;
~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1027:43 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1027 optimizeDependenciesAdvanced: SyncBailHook<Module[]>;
~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1030:23 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1030 optimize: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1032:35 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1032 optimizeModulesBasic: SyncBailHook<Module[]>;
~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1033:30 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1033 optimizeModules: SyncBailHook<Module[]>;
~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1034:38 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1034 optimizeModulesAdvanced: SyncBailHook<Module[]>;
~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1049:27 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1049 shouldRecord: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1068:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1068 beforeHash: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1069:24 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1069 afterHash: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1075:33 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1075 beforeModuleAssets: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1076:40 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1076 shouldGenerateChunkAssets: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1077:32 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1077 beforeChunkAssets: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1082:31 - error TS2707: Generic type 'AsyncSeriesHook<T, AdditionalOptions>' requires between 1 and 2 type a
rguments.

1082 additionalAssets: AsyncSeriesHook;
~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1088:33 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1088 needAdditionalSeal: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1089:24 - error TS2707: Generic type 'AsyncSeriesHook<T, AdditionalOptions>' requires between 1 and 2 type a
rguments.

1089 afterSeal: AsyncSeriesHook;
~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1097:33 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1097 needAdditionalPass: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1098:28 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1098 childCompiler: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1102:43 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1102 optimizeExtractedChunksBasic: SyncBailHook<Chunk[]>;
~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1103:38 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1103 optimizeExtractedChunks: SyncBailHook<Chunk[]>;
~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1104:46 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1104 optimizeExtractedChunksAdvanced: SyncBailHook<Chunk[]>;
~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1117:27 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.

1117 jsonpScript?: SyncWaterfallHook<string, Chunk, string>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1118:32 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.

1118 requireExtensions: SyncWaterfallHook<string, Chunk, string>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1119:28 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.

1119 requireEnsure: SyncWaterfallHook<string, Chunk, string>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1120:24 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.

1120 localVars: SyncWaterfallHook<string, Chunk, string>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1132:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.

1132 content: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1133:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.

1133 module: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1134:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.

1134 render: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1135:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.

1135 package: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1136:19 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1136 hash: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1211:25 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1211 shouldEmit: SyncBailHook;
~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1213:29 - error TS2707: Generic type 'AsyncSeriesHook<T, AdditionalOptions>' requires between 1 and 2 type a
rguments.

1213 additionalPass: AsyncSeriesHook;
~~~~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1229:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1229 watchClose: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1230:26 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1230 environment: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1231:31 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1231 afterEnvironment: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1234:26 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1234 entryOption: SyncBailHook;
~~~~~~~~~~~~

node_modules/@types/webpack/index.d.ts:1246:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.

1246 watchClose: SyncHook;
~~~~~~~~

node_modules/@types/webpack/index.d.ts:1312:24 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.

1312 _pluginCompat: SyncBailHook<compilation.Compilation>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/app-home.dto.ts:14:32 - error TS2345: Argument of type 'TransformFnParams' is not assignable to parameter of type 'string'.

14 @Transform(value => parseInt(value, 10) || 1, { toClassOnly: true })
~~~~~

src/controllers/auth/dto/account.dto.ts:20:31 - error TS2339: Property 'toLowerCase' does not exist on type 'TransformFnParams'.

20 @Transform(value => value.toLowerCase(), { toClassOnly: true })
~~~~~~~~~~~

src/controllers/auth/dto/register.dto.ts:27:31 - error TS2339: Property 'toLowerCase' does not exist on type 'TransformFnParams'.

27 @Transform(value => value.toLowerCase(), { toClassOnly: true })
~~~~~~~~~~~

src/controllers/auth/dto/register.dto.ts:49:31 - error TS2339: Property 'toLowerCase' does not exist on type 'TransformFnParams'.

49 @Transform(value => value.toLowerCase(), { toClassOnly: true })
~~~~~~~~~~~

src/controllers/upload/upload.config.ts:48:47 - error TS2339: Property 'trim' does not exist on type 'string | string[] | ParsedQs | ParsedQs[]'.
Property 'trim' does not exist on type 'string[]'.

48 const dir = (req.query.dir || '').trim();
~~~~

src/models/base.repository.ts:8:3 - error TS2724: Module '"mongoose"' has no exported member 'ModelPopulateOptions'. Did you mean 'ModelUpdateOptio
ns'?

8 ModelPopulateOptions,
~~~~~~~~~~~~~~~~~~~~

src/models/base.repository.ts:9:3 - error TS2305: Module '"mongoose"' has no exported member 'QueryFindOneAndRemoveOptions'.

9 QueryFindOneAndRemoveOptions,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/models/base.repository.ts:10:3 - error TS2305: Module '"mongoose"' has no exported member 'QueryFindOneAndUpdateOptions'.

10 QueryFindOneAndUpdateOptions,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/models/base.repository.ts:88:41 - error TS2345: Argument of type 'FindConditions' is not assignable to parameter of type '_FilterQuery<Docum
entType>'.
Type 'FindConditions' is not assignable to type '{ [P in keyof DocumentType]?: Condition<[Extract<DocumentType[P], ObjectId>] extends [n
ever] ? DocumentType[P] : string | DocumentType<...>[P]>; }'.
Type '"typegooseName" | keyof (T extends Base ? Pick<Document<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "sch
ema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T)' is not assignable to type 'keyof T'.
Type '"typegooseName"' is not assignable to type 'keyof T'.
Type '"typegooseName"' is not assignable to type '"id" | "created_at" | "updated_at"'.

88 const docsQuery = this.model.find(conditions, projection, options);
~~~~~~~~~~

src/models/base.repository.ts:90:9 - error TS2345: Argument of type 'Query<EnforceDocument<DocumentType, {}>[], EnforceDocument<DocumentType,
{}>, {}, DocumentType>' is not assignable to parameter of type 'DocumentQuery<DocumentType[], DocumentType, {}>'.
The types of 'count(...).deleteMany(...).distinct(...).replaceOne' are incompatible between these types.
Type '{ (filter?: _FilterQuery<EnforceDocument<DocumentType, {}>>, replacement?: DocumentDefinition<EnforceDocument<DocumentType, {}>>, o
ptions?: QueryOptions, callback?: Callback<...>): Query<...>; (filter?: _FilterQuery<...>, replacement?: Object, options?: QueryOptions, callback?:
Callback<...>): Query<...>; }' is not assignable to type '{ (filter?: _FilterQuery<DocumentType>, replacement?: DocumentDefinition<DocumentType
>, options?: QueryOptions, callback?: Callback<...>): Query<...>; (filter?: _FilterQuery<...>, replacement?: Object, options?: QueryOptions, cal
lback?: Callback<...>): Query<...>; }'.
Types of parameters 'replacement' and 'replacement' are incompatible.
Type 'DocumentDefinition<DocumentType>' is not assignable to type 'DocumentDefinition<EnforceDocument<DocumentType, {}>>'.
Type 'Exclude<keyof EnforceDocument<DocumentType, {}>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | "updat
e" | "invalidate" | ... 44 more ... | "validateSync">' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<
Document<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<
...> & T), "get" | ... 52 more ... | "validateSync">'.
Type 'keyof EnforceDocument<DocumentType, {}>' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base
? Pick<Document<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Do
cument<...> & T), "get" | ... 52 more ... | "validateSync">'.
Type 'string | number | symbol' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<Document<
any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T)
, "get" | ... 52 more ... | "validateSync">'.
Type 'string' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<Document<any, any, any>,
"get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T), "get" | ... 52
more ... | "validateSync">'.
Type 'keyof EnforceDocument<DocumentType, {}>' is not assignable to type '"typegooseName"'.
Type 'string | number | symbol' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<Doc
ument<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...

& T), "get" | ... 52 more ... | "validateSync">'.
Type 'string' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<Document<any, any,
any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T), "get" |
... 52 more ... | "validateSync">'.
Type 'Exclude<keyof EnforceDocument<DocumentType, {}>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "eq
uals" | "update" | "invalidate" | ... 44 more ... | "validateSync">' is not assignable to type '"typegooseName"'.
Type 'keyof EnforceDocument<DocumentType, {}>' is not assignable to type '"typegooseName"'.
Type 'string | number | symbol' is not assignable to type '"typegooseName"'.
Type 'string' is not assignable to type '"typegooseName"'.
Type 'string | number | symbol' is not assignable to type '"typegooseName"'.
Type 'string' is not assignable to type '"typegooseName"'.

90 docsQuery,
~~~~~~~~~

src/models/base.repository.ts:111:9 - error TS2345: Argument of type 'ObjectId | FindConditions | { _id: string; }' is not assignable to paramet
er of type '_FilterQuery<DocumentType>'.
Type 'ObjectId' is not assignable to type '_FilterQuery<DocumentType>'.
Type 'ObjectId' is not assignable to type '{ [P in keyof DocumentType]?: Condition<[Extract<DocumentType[P], ObjectId>] extends [never] ?
DocumentType[P] : string | DocumentType<...>[P]>; }'.

111 this.conditions(conditions),
~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/models/base.repository.ts:116:9 - error TS2345: Argument of type 'Query<EnforceDocument<DocumentType, {}>, EnforceDocument<DocumentType,
{}>, {}, DocumentType>' is not assignable to parameter of type 'DocumentQuery<DocumentType, DocumentType, {}>'.
The types returned by '$where(...)' are incompatible between these types.
Type 'Query<EnforceDocument<DocumentType, {}>[], EnforceDocument<DocumentType, {}>, {}, DocumentType>' is not assignable to type 'Quer
y<DocumentType[], DocumentType, {}, DocumentType>'.

116 docsQuery,
~~~~~~~~~

src/models/base.repository.ts:154:31 - error TS2769: No overload matches this call.
Overload 1 of 2, '(callback?: Callback): Query<number, EnforceDocument<DocumentType, {}>, {}, DocumentType>', gave the following er
ror.
Argument of type 'FindConditions' is not assignable to parameter of type 'Callback'.
Type 'FindConditions' provides no match for the signature '(error: NativeError, result: number): void'.
Overload 2 of 2, '(filter: _FilterQuery<DocumentType>, callback?: Callback): Query<number, EnforceDocument<DocumentType, {}>, {}, D
ocumentType<...>>', gave the following error.
Argument of type 'FindConditions' is not assignable to parameter of type '_FilterQuery<DocumentType>'.
Type 'FindConditions' is not assignable to type '{ [P in keyof DocumentType]?: Condition<[Extract<DocumentType[P], ObjectId>] extend
s [never] ? DocumentType[P] : string | DocumentType<...>[P]>; }'.

154 return this.model.count(conditions).exec();
~~~~~~~~~~

src/models/base.repository.ts:175:11 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type '{ [x: string]: boolean; }' is not assignable to parameter of type 'UpdateWithAggregationPipeline | UpdateQuery<DocumentType<T

'.
Type '{ [x: string]: boolean; }' is not assignable to type 'UpdateQuery<DocumentType>'.
Type '{ [x: string]: boolean; }' is not assignable to type 'ReadonlyPartial<__UpdateQueryDef<Pick<_LeanDocument<DocumentType>, "typegoos
eName" | Exclude<keyof (T extends Base ? Pick<Document<any, any, any>, "get" | ... 54 more ... | "validateSync"> & T : Document<...> & T)
, "get" | ... 53 more ... | "$isSingleNested">>>>'.

175 {
~
176 [deletedPath]: true,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
177 },
~~~~~~~~~~~

node_modules/mongoose/index.d.ts:998:5
998 findByIdAndUpdate(id?: mongodb.ObjectId | any, update?: UpdateQuery | UpdateWithAggregationPipeline, options?: QueryOptions | null,
callback?: (err: CallbackError, doc: EnforceDocument<T, TMethods> | null, res: any) => void): QueryWithHelpers<EnforceDocument<T, TMethods> | null,
EnforceDocument<T, TMethods>, TQueryHelpers, T>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The last overload is declared here.

src/models/base.repository.ts:199:11 - error TS2769: No overload matches this call.
  The last overload gave the following error.
    Argument of type '{ [x: string]: boolean; }' is not assignable to parameter of type 'UpdateWithAggregationPipeline | UpdateQuery<DocumentType<T
>>'.
      Type '{ [x: string]: boolean; }' is not assignable to type 'UpdateQuery<DocumentType<T>>'.
        Type '{ [x: string]: boolean; }' is not assignable to type 'ReadonlyPartial<__UpdateQueryDef<Pick<_LeanDocument<DocumentType<T>>, "typegoos
eName" | Exclude<keyof (T extends Base<ObjectId> ? Pick<Document<any, any, any>, "get" | ... 54 more ... | "validateSync"> & T : Document<...> & T)
, "get" | ... 53 more ... | "$isSingleNested">>>>'.

199           {
              ~
200             [deletedPath]: false,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
201           },
    ~~~~~~~~~~~

  node_modules/mongoose/index.d.ts:998:5
    998     findByIdAndUpdate(id?: mongodb.ObjectId | any, update?: UpdateQuery<T> | UpdateWithAggregationPipeline, options?: QueryOptions | null, 
callback?: (err: CallbackError, doc: EnforceDocument<T, TMethods> | null, res: any) => void): QueryWithHelpers<EnforceDocument<T, TMethods> | null,
 EnforceDocument<T, TMethods>, TQueryHelpers, T>;
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The last overload is declared here.

src/models/base.repository.ts:222:41 - error TS2769: No overload matches this call.
  Overload 1 of 3, '(filter?: _FilterQuery<DocumentType<T>>, options?: QueryOptions, callback?: CallbackWithoutResult): Query<{ ...; } & { ...; }, 
EnforceDocument<...>, {}, DocumentType<...>>', gave the following error.
    Argument of type 'string | ObjectId | FindConditions<T>' is not assignable to parameter of type '_FilterQuery<DocumentType<T>>'.
      Type 'string' is not assignable to type '_FilterQuery<DocumentType<T>>'.
        Type 'string' is not assignable to type '{ [P in keyof DocumentType<T>]?: Condition<[Extract<DocumentType<T>[P], ObjectId>] extends [never]
 ? DocumentType<T>[P] : string | DocumentType<...>[P]>; }'.
  Overload 2 of 3, '(filter: _FilterQuery<DocumentType<T>>, callback: CallbackWithoutResult): Query<{ ok?: number; n?: number; } & { deletedCount?:
 number; }, EnforceDocument<...>, {}, DocumentType<...>>', gave the following error.
    Argument of type 'string | ObjectId | FindConditions<T>' is not assignable to parameter of type '_FilterQuery<DocumentType<T>>'.
      Type 'string' is not assignable to type '_FilterQuery<DocumentType<T>>'.
        Type 'string' is not assignable to type '{ [P in keyof DocumentType<T>]?: Condition<[Extract<DocumentType<T>[P], ObjectId>] extends [never]
 ? DocumentType<T>[P] : string | DocumentType<...>[P]>; }'.

222       return await this.model.deleteOne(conditions, options).exec();
                                            ~~~~~~~~~~


src/models/base.repository.ts:241:40 - error TS2769: No overload matches this call.
  The last overload gave the following error.
    Argument of type 'QueryDeepPartialEntity<T>' is not assignable to parameter of type 'UpdateWithAggregationPipeline | UpdateQuery<DocumentType<T
>>'.
      Type 'QueryDeepPartialEntity<T>' is not assignable to type 'UpdateQuery<DocumentType<T>>'.
        Type 'QueryDeepPartialEntity<T>' is not assignable to type 'ReadonlyPartial<__UpdateQueryDef<Pick<_LeanDocument<DocumentType<T>>, "typegoos
eName" | Exclude<keyof (T extends Base<ObjectId> ? Pick<Document<any, any, any>, "get" | ... 54 more ... | "validateSync"> & T : Document<...> & T)
, "get" | ... 53 more ... | "$isSingleNested">>>>'.
          Type '"typegooseName" | Exclude<keyof (T extends Base<ObjectId> ? Pick<Document<any, any, any>, "get" | "set" | "delete" | "init" | "coll
ection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T), "get" | ... 53 more ... | "$isSingleNested">' is not as
signable to type 'keyof T'.
            Type '"typegooseName"' is not assignable to type 'keyof T'.

241         .findByIdAndUpdate(conditions, partialEntity, options)
                                           ~~~~~~~~~~~~~

  node_modules/mongoose/index.d.ts:998:5
    998     findByIdAndUpdate(id?: mongodb.ObjectId | any, update?: UpdateQuery<T> | UpdateWithAggregationPipeline, options?: QueryOptions | null, 
callback?: (err: CallbackError, doc: EnforceDocument<T, TMethods> | null, res: any) => void): QueryWithHelpers<EnforceDocument<T, TMethods> | null,
 EnforceDocument<T, TMethods>, TQueryHelpers, T>;
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The last overload is declared here.

src/models/base.repository.ts:270:40 - error TS2769: No overload matches this call.
  The last overload gave the following error.
    Argument of type '{ $inc: { [key: string]: number; }; }' is not assignable to parameter of type 'UpdateWithAggregationPipeline | UpdateQuery<Do
cumentType<T>>'.
      Types of property '$inc' are incompatible.
        Type '{ [key: string]: number; }' is not assignable to type 'OnlyFieldsOfType<__UpdateQueryDef<DocumentType<T>>, NumericTypes, NumericTypes
> & AnyObject'.
          Type '{ [key: string]: number; }' is not assignable to type 'OnlyFieldsOfType<__UpdateQueryDef<DocumentType<T>>, NumericTypes, NumericTyp
es>'.

270         .findByIdAndUpdate(conditions, { $inc: property }, { new: true })
                                           ~~~~~~~~~~~~~~~~~~

  node_modules/mongoose/index.d.ts:998:5
    998     findByIdAndUpdate(id?: mongodb.ObjectId | any, update?: UpdateQuery<T> | UpdateWithAggregationPipeline, options?: QueryOptions | null, 
callback?: (err: CallbackError, doc: EnforceDocument<T, TMethods> | null, res: any) => void): QueryWithHelpers<EnforceDocument<T, TMethods> | null,
 EnforceDocument<T, TMethods>, TQueryHelpers, T>;
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The last overload is declared here.

src/models/base.repository.ts:322:33 - error TS2344: Type 'DocumentType<T>' does not satisfy the constraint 'Document<any, any, any>'.
  The types of 'replaceOne(...).$where(...).and' are incompatible between these types.
    Type '(array: _FilterQuery<T extends Base<ObjectId> ? Pick<Document<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema"
 | "equals" | "update" | "invalidate" | ... 46 more ... | "validateSync"> & T : Document<...> & T>[]) => Query<...>' is not assignable to type '(ar
ray: _FilterQuery<Document<any, any, any>>[]) => Query<Document<any, any, any>[], Document<any, any, any>, {}, Document<any, any, any>>'.
      Types of parameters 'array' and 'array' are incompatible.
        Type '_FilterQuery<Document<any, any, any>>[]' is not assignable to type '_FilterQuery<T extends Base<ObjectId> ? Pick<Document<any, any, a
ny>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | "update" | "invalidate" | ... 46 more ... | "validateSync"> & T : Doc
ument<...> & T>[]'.
          Type '_FilterQuery<Document<any, any, any>>' is not assignable to type '_FilterQuery<T extends Base<ObjectId> ? Pick<Document<any, any, a
ny>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | "update" | "invalidate" | ... 46 more ... | "validateSync"> & T : Doc
ument<...> & T>'.
            Type '_FilterQuery<Document<any, any, any>>' is not assignable to type '{ [P in keyof (T extends Base<ObjectId> ? Pick<Document<any, an
y, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | "update" | "invalidate" | ... 46 more ... | "validateSync"> & T :
 Document<...> & T)]?: Condition<...>; }'.

322     docsQuery: DocumentQuery<D, DocumentType<T>, {}>,
                                    ~~~~~~~~~~~~~~~

src/models/base.repository.ts:324:23 - error TS2344: Type 'DocumentType<T>' does not satisfy the constraint 'Document<any, any, any>'.

324   ): DocumentQuery<D, DocumentType<T>, {}> {
                          ~~~~~~~~~~~~~~~

src/models/repository.ts:4:3 - error TS2724: Module '"mongoose"' has no exported member 'ModelPopulateOptions'. Did you mean 'ModelUpdateOptions'? 

4   ModelPopulateOptions,
    ~~~~~~~~~~~~~~~~~~~~

src/models/repository.ts:5:3 - error TS2305: Module '"mongoose"' has no exported member 'QueryFindOneAndRemoveOptions'.

5   QueryFindOneAndRemoveOptions,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/models/repository.ts:6:3 - error TS2305: Module '"mongoose"' has no exported member 'QueryFindOneAndUpdateOptions'.

6   QueryFindOneAndUpdateOptions,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~


下午12:23:51 - Found 111 errors. Watching for file changes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.