adrien2p / teanjs

:fire: TypeORM - Express - Angular 8 - NestJS Server Side Rendering (SSR) :smiley_cat:
MIT License
79 stars 13 forks source link

About error ocurred #5

Open mozgbrasil opened 2 years ago

mozgbrasil commented 2 years ago

Good morning my friends

About error ocurred

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

$ npm run start:dev
Debugger attached.

> teanjs-universal@1.0.0 start:dev /workspace/adrien2p_teanjs
> node serve-script

Debugger attached.
Debugger attached.
Waiting for the debugger to disconnect...
Debugger attached.

 10% building 3/3 modules 0 activeDebugger attached.                              
 10% building 1/1 modules 0 activeDebugger attached.     
node_modules/@nestjs/common/http/http.service.d.ts:13:9 - error TS1086: An accessor cannot be declared in an ambient context.

13     get axiosRef(): AxiosInstance;
           ~~~~~~~~

node_modules/@nestjs/core/helpers/http-adapter-host.d.ts:21:9 - error TS1086: An accessor cannot be declared in an ambient context.

21     set httpAdapter(httpAdapter: T);
           ~~~~~~~~~~~

node_modules/@nestjs/core/helpers/http-adapter-host.d.ts:28:9 - error TS1086: An accessor cannot be declared in an ambient context.

28     get httpAdapter(): T;
           ~~~~~~~~~~~

node_modules/@nestjs/core/injector/container.d.ts:19:9 - error TS1086: An accessor cannot be declared in an ambient context.

19     get applicationConfig(): ApplicationConfig | undefined;
           ~~~~~~~~~~~~~~~~~

node_modules/@nestjs/core/injector/instance-wrapper.d.ts:33:9 - error TS1086: An accessor cannot be declared in an ambient context.

33     get id(): string;
           ~~

node_modules/@nestjs/core/injector/instance-wrapper.d.ts:34:9 - error TS1086: An accessor cannot be declared in an ambient context.

34     set instance(value: T);
           ~~~~~~~~

node_modules/@nestjs/core/injector/instance-wrapper.d.ts:35:9 - error TS1086: An accessor cannot be declared in an ambient context.

35     get instance(): T;
           ~~~~~~~~

node_modules/@nestjs/core/injector/instance-wrapper.d.ts:36:9 - error TS1086: An accessor cannot be declared in an ambient context.

36     get isNotMetatype(): boolean;
           ~~~~~~~~~~~~~

node_modules/@nestjs/core/injector/instance-wrapper.d.ts:37:9 - error TS1086: An accessor cannot be declared in an ambient context.

37     get isTransient(): boolean;
           ~~~~~~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:21:9 - error TS1086: An accessor cannot be declared in an ambient context.

21     get id(): string;
           ~~

node_modules/@nestjs/core/injector/module.d.ts:22:9 - error TS1086: An accessor cannot be declared in an ambient context.

22     get scope(): Type<any>[];
           ~~~~~

node_modules/@nestjs/core/injector/module.d.ts:23:9 - error TS1086: An accessor cannot be declared in an ambient context.

23     get providers(): Map<any, InstanceWrapper<Injectable>>;
           ~~~~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:24:9 - error TS1086: An accessor cannot be declared in an ambient context.

24     get middlewares(): Map<any, InstanceWrapper<Injectable>>;
           ~~~~~~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:25:9 - error TS1086: An accessor cannot be declared in an ambient context.

25     get imports(): Set<Module>;
           ~~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:29:9 - error TS1086: An accessor cannot be declared in an ambient context.

29     get relatedModules(): Set<Module>;
           ~~~~~~~~~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:33:9 - error TS1086: An accessor cannot be declared in an ambient context.

33     get components(): Map<string, InstanceWrapper<Injectable>>;
           ~~~~~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:37:9 - error TS1086: An accessor cannot be declared in an ambient context.

37     get routes(): Map<string, InstanceWrapper<Controller>>;
           ~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:38:9 - error TS1086: An accessor cannot be declared in an ambient context.

38     get injectables(): Map<string, InstanceWrapper<Injectable>>;
           ~~~~~~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:39:9 - error TS1086: An accessor cannot be declared in an ambient context.

39     get controllers(): Map<string, InstanceWrapper<Controller>>;
           ~~~~~~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:40:9 - error TS1086: An accessor cannot be declared in an ambient context.

40     get exports(): Set<string | symbol>;
           ~~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:41:9 - error TS1086: An accessor cannot be declared in an ambient context.

41     get instance(): NestModule;
           ~~~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:42:9 - error TS1086: An accessor cannot be declared in an ambient context.

42     get metatype(): Type<any>;
           ~~~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:43:9 - error TS1086: An accessor cannot be declared in an ambient context.

43     get distance(): number;
           ~~~~~~~~

node_modules/@nestjs/core/injector/module.d.ts:44:9 - error TS1086: An accessor cannot be declared in an ambient context.

44     set distance(value: number);
           ~~~~~~~~

[8:19:56 PM] Found 24 errors. Watching for file changes.

 10% building 4/5 modul 10% building 3/4 modules 1 active external "@nguniversal/expHash: bc282ff82f39f7d72026                                                         
Time: 20868ms
Built at: 01/18/2022 8:20:10 PM
      Asset      Size  Chunks             Chunk Names
    main.js  54.1 KiB    main  [emitted]  main
main.js.map  13.2 KiB    main  [emitted]  main
Entrypoint main = main.js main.js.map
chunk {main} main.js, main.js.map (main) 39.6 KiB [entry] [rendered]

chunk {main} main.js, main.js.map (main) 38.5 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 130 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.09 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 180 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 3.56 MB [initial] [rendered]
Date: 2022-01-18T20:20:17.019Z - Hash: 2dd80f01e8d1e25583ec - Time: 28821ms
Waiting for the debugger to disconnect...
Debugger attached.
Waiting for the debugger to disconnect...
Debugger attached.
[nodemon] 1.19.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): dist/**/*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node dist/server-app/main.js`
Debugger attached.
[Nest] 6412   - 01/18/2022, 8:20:25 PM   [NestFactory] Starting Nest application...
[Nest] 6412   - 01/18/2022, 8:20:26 PM   [InstanceLoader] ApplicationModule dependencies initialized +112ms
[Nest] 6412   - 01/18/2022, 8:20:26 PM   [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 6412   - 01/18/2022, 8:20:26 PM   [InstanceLoader] PassportModule dependencies initialized +0ms
[Nest] 6412   - 01/18/2022, 8:20:26 PM   [InstanceLoader] JwtModule dependencies initialized +1ms
[Nest] 6412   - 01/18/2022, 8:20:26 PM   [InstanceLoader] AngularUniversalModule dependencies initialized +1ms
Waiting for the debugger to disconnect...
[nodemon] clean exit - waiting for changes before restart

Thanks in advance to everyone who can contribute.

adrien2p commented 2 years ago

Hey there, sorry about that, the project has not been maintained for a while. Feel free to create a PR to update the packages. It has not attract a lot of people so it has been a bit forgotten. I would be very thankful if you update the repo :)