nestjs-graphql-boilerplate icon indicating copy to clipboard operation
nestjs-graphql-boilerplate copied to clipboard

About error ocurred

Open mozgbrasil opened this issue 3 years ago • 0 comments

Good morning my friends

About error ocurred

I'm testing this project and the following error is being returned

$ npm run start:debug

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 arguments.

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<H>' requires 1 type argument(s).

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

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

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

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

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

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

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

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

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

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

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

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

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

node_modules/@types/webpack/index.d.ts:962:47 - error TS2314: Generic type 'HookMap<H>' 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 arguments.

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 arguments.

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

node_modules/@types/webpack/index.d.ts:965:24 - error TS2314: Generic type 'HookMap<H>' 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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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

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

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

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

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

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

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

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

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

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

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

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

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

node_modules/@types/webpack/index.d.ts:981:25 - error TS2314: Generic type 'HookMap<H>' 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 arguments.

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

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

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

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

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

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

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

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

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

node_modules/@types/webpack/index.d.ts:987:38 - error TS2314: Generic type 'HookMap<H>' 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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

1211             shouldEmit: SyncBailHook<Compilation>;
                             ~~~~~~~~~~~~~~~~~~~~~~~~~

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

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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 arguments.

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

node_modules/apollo-server-core/dist/ApolloServer.d.ts:7:13 - error TS1259: Module '"/workspace/fernandohenriques_nestjs-graphql-boilerplate/node_modules/@types/ws/index"' can only be default-imported using the 'esModuleInterop' flag

7 import type WebSocket from 'ws';
              ~~~~~~~~~

  node_modules/@types/ws/index.d.ts:353:1
    353 export = WebSocket;
        ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/apollo-server-core/dist/types.d.ts:5:13 - error TS1259: Module '"/workspace/fernandohenriques_nestjs-graphql-boilerplate/node_modules/@types/ws/index"' can only be default-imported using the 'esModuleInterop' flag

5 import type WebSocket from 'ws';
              ~~~~~~~~~

  node_modules/@types/ws/index.d.ts:353:1
    353 export = WebSocket;
        ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsAlpha.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsAlphanumeric.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsCurrency.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsDateString.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsDecimal.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsEmail.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsFQDN.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsHash.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsISO8601.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsISSN.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsIdentityCard.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsMacAddress.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsMobilePhone.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsNumberString.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsPostalCode.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/type-graphql/node_modules/class-validator/types/decorator/string/IsUrl.d.ts:2:8 - error TS1259: Module '"validator"' can only be default-imported using the 'esModuleInterop' flag

2 import ValidatorJS from 'validator';
         ~~~~~~~~~~~

  node_modules/@types/validator/index.d.ts:417:3
    417   export = validator;
          ~~~~~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

src/main.ts:10:20 - error TS2769: No overload matches this call.
  Overload 1 of 3, '(port: number, callback?: (err: Error, address: string) => void): Promise<any>', gave the following error.
    Argument of type 'string | 3000' is not assignable to parameter of type 'number'.
      Type 'string' is not assignable to type 'number'.
  Overload 2 of 3, '(port: number, address: string, callback?: (err: Error, address: string) => void): Promise<any>', gave the following error.
    Argument of type 'string | 3000' is not assignable to parameter of type 'number'.
      Type 'string' is not assignable to type 'number'.

10   await app.listen(process.env.PORT || 3000, '0.0.0.0');
                      ~~~~~~~~~~~~~~~~~~~~~~~~



11:21:10 PM - Found 106 errors. Watching for file changes.

Thanks in advance to everyone who can contribute.

mozgbrasil avatar Jan 20 '22 23:01 mozgbrasil