Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nx breaks typescript compiler #29995

Open
1 of 4 tasks
nhhockeyplayer opened this issue Feb 12, 2025 · 0 comments
Open
1 of 4 tasks

nx breaks typescript compiler #29995

nhhockeyplayer opened this issue Feb 12, 2025 · 0 comments

Comments

@nhhockeyplayer
Copy link

nhhockeyplayer commented Feb 12, 2025

Current Behavior

code thats been building for months and legit typescript no longer compiles

the amount of errors typescript has flagged is mind boggling

for typescript to impose me to put all these changes in ontop of already legit typescript code is unacceptable

typescript compiler expects me to put TYPEOF in front of everything now

declarations
rxjs pipes and map operators etc...

way too much to ask

something isnt right

the declarations are fine and been legit typescript for at least 3 yrs

Expected Behavior

code should compile

GitHub Repo

https://github.com/nhhockeyplayer/meanstack

Steps to Reproduce

my repo needs access please request

Nx Report

nx report
Unable to find local plugin [] Map(0) {}
Unable to find local plugin [] Map(0) {}
Unable to find local plugin [] Map(0) {}
Unable to find local plugin [] Map(0) {}

 NX   Report complete - copy this into the issue template

Node           : 22.0.0
OS             : darwin-x64
Native Target  : x86_64-macos
yarn           : 1.22.22

nx (global)            : 20.4.2
nx                     : 20.4.2
@nx/js                 : 20.4.2
@nx/jest               : 20.4.2
@nx/eslint             : 20.4.2
@nx/workspace          : 20.4.2
@nx/angular            : 20.4.2
@nx/cypress            : 20.4.2
@nx/devkit             : 20.4.2
@nx/esbuild            : 20.4.2
@nx/eslint-plugin      : 20.4.2
@nx/express            : 20.4.2
@nx/module-federation  : 20.4.2
@nx/nest               : 20.4.2
@nx/node               : 20.4.2
@nx/playwright         : 20.4.2
@nx/vite               : 20.4.2
@nx/web                : 20.4.2
@nx/webpack            : 20.4.2
typescript             : 5.7.3
---------------------------------------
Registered Plugins:
@nx/cypress/plugin
@nx/eslint/plugin
@nx/webpack/plugin
---------------------------------------
Community plugins:
@compodoc/compodoc               : 1.1.26
@fortawesome/angular-fontawesome : 1.0.0
@ionic/angular                   : 8.4.3
@jsverse/transloco               : 7.5.1
@ngrx/component                  : 19.0.0
@ngrx/component-store            : 19.0.0
@ngrx/effects                    : 19.0.0
@ngrx/entity                     : 19.0.0
@ngrx/operators                  : 19.0.0
@ngrx/router-store               : 19.0.0
@ngrx/schematics                 : 19.0.1
@ngrx/store                      : 19.0.0
@ngrx/store-devtools             : 19.0.1
@nxext/capacitor                 : 20.1.0
@nxext/ionic-angular             : 20.0.5
angular-eslint                   : 19.1.0
apollo-angular                   : 8.0.2


I am unsure what plugins nx report is complaining about

Failure Logs

> nx run shared-root-security-auth:build:production

Building Angular Package

------------------------------------------------------------------------------
Building entry point '@nhhockeyplayer/shared-root-security-auth'
------------------------------------------------------------------------------
✖ Compiling with Angular sources in Ivy partial compilation mode.

 NX   error TS5055: Cannot write file '/Users/meanstack02/meanstack/dist/libs/shared/root/environment/index.cjs' because it would overwrite input file.

error TS5055: Cannot write file '/Users/meanstack02/meanstack/dist/libs/shared/root/service/index.cjs' because it would overwrite input file.
error TS5055: Cannot write file '/Users/meanstack02/meanstack/dist/libs/shared/util/isomorphic/index.cjs' because it would overwrite input file.
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:22:32 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

22     getUserPojos(): Observable<UserPojo[]> {
                                  ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:24:30 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

24         return this.http.get<UserPojo[]>(`http://localhost:3333/nest/user`)
                                ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:26:41 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

26                        map((collection: UserPojo[]) => collection),
                                           ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:42:41 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

42     getUserPojo(id: number): Observable<UserPojo> {
                                           ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:43:30 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

43         return this.http.get<UserPojo>(`${this.apiUrl}/user/${id}`)
                                ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:47:24 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

47     saveUserPojo(user: UserPojo): Observable<any> {
                          ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:3:26 - error TS6059: File '/Users/meanstack02/meanstack/dist/libs/shared/util/isomorphic/index.cjs' is not under 'rootDir' '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src'. 'rootDir' is expected to contain all source files.
  The file is in the program because:
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/interface/IClientDecodedJwt.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'

3 import { UserPojo } from '@nhhockeyplayer/shared-util-isomorphic'
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:11:42
    11 import {EnvironmentPojo, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic'
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:12:31
    12 import { IAuthResponse } from '@nhhockeyplayer/shared-util-isomorphic'
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:11:54
    11 import { EnvironmentPojo, IUserPojo, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic'
                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:6:47
    6 import { IRolePojo, RolePojo, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic'
                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:12:23
    12 import { ERole } from '@nhhockeyplayer/shared-util-isomorphic'
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/interface/IClientDecodedJwt.ts:1:25
    1 import {IUserPojo} from '@nhhockeyplayer/shared-util-isomorphic'
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts:7:69
    7 import { ERole, IRolePojo, RolePojo, RolePojoModel, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic';
                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:12:10 - error TS2305: Module '"@nhhockeyplayer/shared-util-isomorphic"' has no exported member 'IAuthResponse'.

12 import { IAuthResponse } from '@nhhockeyplayer/shared-util-isomorphic'
            ~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:20:14 - error TS2415: Class 'AuthApiService' incorrectly extends base class 'BaseService'.
  Property 'localStorageService' is protected in type 'AuthApiService' but public in type 'BaseService'.

20 export class AuthApiService extends BaseService {
                ~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:22:95 - error TS2749: 'LocalStorageService' refers to a value, but is being used as a type here. Did you mean 'typeof LocalStorageService'?

22         @Inject(LOCALSTORAGE_SERVICE_INJECTION_TOKEN) protected override localStorageService: LocalStorageService,
                                                                                                 ~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:23:79 - error TS2749: 'EnvironmentPojo' refers to a value, but is being used as a type here. Did you mean 'typeof EnvironmentPojo'?

23         @Inject(ENVIRONMENT_INSTANCE_INJECTION_TOKEN) protected override env: EnvironmentPojo,
                                                                                 ~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:32:21 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

32     register(model: UserPojo) {
                       ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:56:18 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

56     login(model: UserPojo) {
                    ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:80:26 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

80     passwordReset(model: UserPojo) {
                            ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:104:26 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

104     resetPassword(model: UserPojo): Observable<IAuthResponse<UserPojo>> {
                             ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:104:62 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

104     resetPassword(model: UserPojo): Observable<IAuthResponse<UserPojo>> {
                                                                 ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:107:16 - error TS2347: Untyped function calls may not accept type arguments.

107         return this.http
                   ~~~~~~~~~
108                    .put<IAuthResponse<UserPojo>>(this.apiUrl + model._id, model)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:108:39 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

108                    .put<IAuthResponse<UserPojo>>(this.apiUrl + model._id, model)
                                          ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:129:25 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

129     editPassword(model: UserPojo): Observable<IAuthResponse<UserPojo>> {
                            ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:129:61 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

129     editPassword(model: UserPojo): Observable<IAuthResponse<UserPojo>> {
                                                                ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:132:16 - error TS2347: Untyped function calls may not accept type arguments.

132         return this.http
                   ~~~~~~~~~
133                    .put<IAuthResponse<UserPojo>>(this.apiUrl + model._id, model)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:133:39 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

133                    .put<IAuthResponse<UserPojo>>(this.apiUrl + model._id, model)
                                          ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:10:8 - error TS6059: File '/Users/meanstack02/meanstack/dist/libs/shared/root/service/index.cjs' is not under 'rootDir' '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src'. 'rootDir' is expected to contain all source files.
  The file is in the program because:
    Imported via '@nhhockeyplayer/shared-root-service' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts' with packageId '@nhhockeyplayer/shared-root-service/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-root-service' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts' with packageId '@nhhockeyplayer/shared-root-service/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-root-service' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/http-interceptors/http-auth.interceptor.ts' with packageId '@nhhockeyplayer/shared-root-service/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-root-service' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts' with packageId '@nhhockeyplayer/shared-root-service/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-root-service' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts' with packageId '@nhhockeyplayer/shared-root-service/index.cjs@0.0.1'

10 } from '@nhhockeyplayer/shared-root-service'
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:10:8
    10 } from '@nhhockeyplayer/shared-root-service'
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/http-interceptors/http-auth.interceptor.ts:10:8
    10 } from '@nhhockeyplayer/shared-root-service'
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:11:8
    11 } from '@nhhockeyplayer/shared-root-service'
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts:12:8
    12 } from '@nhhockeyplayer/shared-root-service';
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:13:54 - error TS6059: File '/Users/meanstack02/meanstack/dist/libs/shared/root/environment/index.cjs' is not under 'rootDir' '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src'. 'rootDir' is expected to contain all source files.
  The file is in the program because:
    Imported via '@nhhockeyplayer/shared-root-environment' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts' with packageId '@nhhockeyplayer/shared-root-environment/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-root-environment' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts' with packageId '@nhhockeyplayer/shared-root-environment/index.cjs@0.0.1'

13 import { ENVIRONMENT_INSTANCE_INJECTION_TOKEN } from '@nhhockeyplayer/shared-root-environment'
                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:12:54
    12 import { ENVIRONMENT_INSTANCE_INJECTION_TOKEN } from '@nhhockeyplayer/shared-root-environment'
                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:11:27 - error TS2724: '"@nhhockeyplayer/shared-util-isomorphic"' has no exported member named 'IUserPojo'. Did you mean 'UserPojo'?

11 import { EnvironmentPojo, IUserPojo, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic'
                             ~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:21:92 - error TS2749: 'LocalStorageService' refers to a value, but is being used as a type here. Did you mean 'typeof LocalStorageService'?

21         @Inject(LOCALSTORAGE_SERVICE_INJECTION_TOKEN) public override localStorageService: LocalStorageService,
                                                                                              ~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:22:76 - error TS2749: 'EnvironmentPojo' refers to a value, but is being used as a type here. Did you mean 'typeof EnvironmentPojo'?

22         @Inject(ENVIRONMENT_INSTANCE_INJECTION_TOKEN) public override env: EnvironmentPojo,
                                                                              ~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:46:16 - error TS2347: Untyped function calls may not accept type arguments.

46         return this.http.get<typeof UserPojo[]>(this.apiUrl).pipe(
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:93:62 - error TS2339: Property 'emailAddress' does not exist on type 'typeof UserPojo'.

93                 users.filter((user: typeof UserPojo) => user.emailAddress === model.emailAddress)
                                                                ~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:98:19 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

98     create(model: UserPojo) {
                     ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:102:14 - error TS2339: Property 'httpHeaders' does not exist on type 'UserApiAnotherService'.

102         this.httpHeaders = {
                 ~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:137:16 - error TS2347: Untyped function calls may not accept type arguments.

137         return this.http.get<UserPojo>(this.apiUrl + id).pipe(
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:137:30 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

137         return this.http.get<UserPojo>(this.apiUrl + id).pipe(
                                 ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:153:19 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

153     update(model: UserPojo) {
                      ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:156:16 - error TS2347: Untyped function calls may not accept type arguments.

156         return this.http.put<UserPojo>(this.apiUrl + model._id, model).pipe(
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:156:30 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

156         return this.http.put<UserPojo>(this.apiUrl + model._id, model).pipe(
                                 ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:198:16 - error TS2347: Untyped function calls may not accept type arguments.

198         return this.http.get<IUserPojo[]>(`${this.apiUrl}/user`)
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:201:37 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

201     getUser(id: number): Observable<UserPojo> {
                                        ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:202:16 - error TS2347: Untyped function calls may not accept type arguments.

202         return this.http.get<UserPojo>(`${this.apiUrl}/user/${id}`)
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:202:30 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

202         return this.http.get<UserPojo>(`${this.apiUrl}/user/${id}`)
                                 ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:206:20 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

206     saveUser(user: UserPojo): Observable<any> {
                       ~~~~~~~~
libs/shared/root/security/auth/src/lib/interface/IClientDecodedJwt.ts:1:9 - error TS2724: '"@nhhockeyplayer/shared-util-isomorphic"' has no exported member named 'IUserPojo'. Did you mean 'UserPojo'?

1 import {IUserPojo} from '@nhhockeyplayer/shared-util-isomorphic'
          ~~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:6:10 - error TS2724: '"@nhhockeyplayer/shared-util-isomorphic"' has no exported member named 'IRolePojo'. Did you mean 'RolePojo'?

6 import { IRolePojo, RolePojo, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic'
           ~~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:19:11 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

19     user: UserPojo = new UserPojo({
             ~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:35:11 - error TS2749: 'RolePojo' refers to a value, but is being used as a type here. Did you mean 'typeof RolePojo'?

35     role: RolePojo | IRolePojo | null = new RolePojo({
             ~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:45:84 - error TS2749: 'LocalStorageService' refers to a value, but is being used as a type here. Did you mean 'typeof LocalStorageService'?

45         @Inject(LOCALSTORAGE_SERVICE_INJECTION_TOKEN) private localStorageService: LocalStorageService,
                                                                                      ~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:143:32 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

143                 const theUser: UserPojo = new UserPojo({
                                   ~~~~~~~~
libs/shared/root/security/auth/src/lib/http-interceptors/http-auth.interceptor.ts:17:84 - error TS2749: 'LocalStorageService' refers to a value, but is being used as a type here. Did you mean 'typeof LocalStorageService'?

17         @Inject(LOCALSTORAGE_SERVICE_INJECTION_TOKEN) private localStorageService: LocalStorageService,
                                                                                      ~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/http-interceptors/http-auth.interceptor.ts:18:37 - error TS2749: 'ErrorHandlerService' refers to a value, but is being used as a type here. Did you mean 'typeof ErrorHandlerService'?

18         private errorDialogService: ErrorHandlerService
                                       ~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/http-interceptors/http-auth.interceptor.ts:18:17 - error NG2003: No suitable injection token for parameter 'errorDialogService' of class 'HttpAuthInterceptor'.
  Consider using the @Inject decorator to specify an injection token.

18         private errorDialogService: ErrorHandlerService
                   ~~~~~~~~~~~~~~~~~~

  libs/shared/root/security/auth/src/lib/http-interceptors/http-auth.interceptor.ts:18:37
    18         private errorDialogService: ErrorHandlerService
                                           ~~~~~~~~~~~~~~~~~~~
    This type does not have a value, so it cannot be used as injection token.
libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts:7:17 - error TS2724: '"@nhhockeyplayer/shared-util-isomorphic"' has no exported member named 'IRolePojo'. Did you mean 'RolePojo'?

7 import { ERole, IRolePojo, RolePojo, RolePojoModel, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic';
                  ~~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts:18:11 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

18     user: UserPojo = new UserPojo({
             ~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts:34:11 - error TS2749: 'RolePojo' refers to a value, but is being used as a type here. Did you mean 'typeof RolePojo'?

34     role: RolePojo | IRolePojo | null = new RolePojoModel({
             ~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts:47:84 - error TS2749: 'LocalStorageService' refers to a value, but is being used as a type here. Did you mean 'typeof LocalStorageService'?

47         @Inject(LOCALSTORAGE_SERVICE_INJECTION_TOKEN) private localStorageService: LocalStorageService,
                                                                                      ~~~~~~~~~~~~~~~~~~~

Error: error TS5055: Cannot write file '/Users/meanstack02/meanstack/dist/libs/shared/root/environment/index.cjs' because it would overwrite input file.
error TS5055: Cannot write file '/Users/meanstack02/meanstack/dist/libs/shared/root/service/index.cjs' because it would overwrite input file.
error TS5055: Cannot write file '/Users/meanstack02/meanstack/dist/libs/shared/util/isomorphic/index.cjs' because it would overwrite input file.
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:22:32 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

22     getUserPojos(): Observable<UserPojo[]> {
                                  ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:24:30 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

24         return this.http.get<UserPojo[]>(`http://localhost:3333/nest/user`)
                                ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:26:41 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

26                        map((collection: UserPojo[]) => collection),
                                           ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:42:41 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

42     getUserPojo(id: number): Observable<UserPojo> {
                                           ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:43:30 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

43         return this.http.get<UserPojo>(`${this.apiUrl}/user/${id}`)
                                ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:47:24 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

47     saveUserPojo(user: UserPojo): Observable<any> {
                          ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts:3:26 - error TS6059: File '/Users/meanstack02/meanstack/dist/libs/shared/util/isomorphic/index.cjs' is not under 'rootDir' '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src'. 'rootDir' is expected to contain all source files.
  The file is in the program because:
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/user-api.service.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/interface/IClientDecodedJwt.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-util-isomorphic' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts' with packageId '@nhhockeyplayer/shared-util-isomorphic/index.cjs@0.0.1'

3 import { UserPojo } from '@nhhockeyplayer/shared-util-isomorphic'
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:11:42
    11 import {EnvironmentPojo, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic'
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:12:31
    12 import { IAuthResponse } from '@nhhockeyplayer/shared-util-isomorphic'
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:11:54
    11 import { EnvironmentPojo, IUserPojo, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic'
                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:6:47
    6 import { IRolePojo, RolePojo, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic'
                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:12:23
    12 import { ERole } from '@nhhockeyplayer/shared-util-isomorphic'
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/interface/IClientDecodedJwt.ts:1:25
    1 import {IUserPojo} from '@nhhockeyplayer/shared-util-isomorphic'
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts:7:69
    7 import { ERole, IRolePojo, RolePojo, RolePojoModel, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic';
                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:12:10 - error TS2305: Module '"@nhhockeyplayer/shared-util-isomorphic"' has no exported member 'IAuthResponse'.

12 import { IAuthResponse } from '@nhhockeyplayer/shared-util-isomorphic'
            ~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:20:14 - error TS2415: Class 'AuthApiService' incorrectly extends base class 'BaseService'.
  Property 'localStorageService' is protected in type 'AuthApiService' but public in type 'BaseService'.

20 export class AuthApiService extends BaseService {
                ~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:22:95 - error TS2749: 'LocalStorageService' refers to a value, but is being used as a type here. Did you mean 'typeof LocalStorageService'?

22         @Inject(LOCALSTORAGE_SERVICE_INJECTION_TOKEN) protected override localStorageService: LocalStorageService,
                                                                                                 ~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:23:79 - error TS2749: 'EnvironmentPojo' refers to a value, but is being used as a type here. Did you mean 'typeof EnvironmentPojo'?

23         @Inject(ENVIRONMENT_INSTANCE_INJECTION_TOKEN) protected override env: EnvironmentPojo,
                                                                                 ~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:32:21 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

32     register(model: UserPojo) {
                       ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:56:18 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

56     login(model: UserPojo) {
                    ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:80:26 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

80     passwordReset(model: UserPojo) {
                            ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:104:26 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

104     resetPassword(model: UserPojo): Observable<IAuthResponse<UserPojo>> {
                             ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:104:62 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

104     resetPassword(model: UserPojo): Observable<IAuthResponse<UserPojo>> {
                                                                 ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:107:16 - error TS2347: Untyped function calls may not accept type arguments.

107         return this.http
                   ~~~~~~~~~
108                    .put<IAuthResponse<UserPojo>>(this.apiUrl + model._id, model)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:108:39 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

108                    .put<IAuthResponse<UserPojo>>(this.apiUrl + model._id, model)
                                          ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:129:25 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

129     editPassword(model: UserPojo): Observable<IAuthResponse<UserPojo>> {
                            ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:129:61 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

129     editPassword(model: UserPojo): Observable<IAuthResponse<UserPojo>> {
                                                                ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:132:16 - error TS2347: Untyped function calls may not accept type arguments.

132         return this.http
                   ~~~~~~~~~
133                    .put<IAuthResponse<UserPojo>>(this.apiUrl + model._id, model)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:133:39 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

133                    .put<IAuthResponse<UserPojo>>(this.apiUrl + model._id, model)
                                          ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:10:8 - error TS6059: File '/Users/meanstack02/meanstack/dist/libs/shared/root/service/index.cjs' is not under 'rootDir' '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src'. 'rootDir' is expected to contain all source files.
  The file is in the program because:
    Imported via '@nhhockeyplayer/shared-root-service' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts' with packageId '@nhhockeyplayer/shared-root-service/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-root-service' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts' with packageId '@nhhockeyplayer/shared-root-service/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-root-service' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/http-interceptors/http-auth.interceptor.ts' with packageId '@nhhockeyplayer/shared-root-service/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-root-service' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts' with packageId '@nhhockeyplayer/shared-root-service/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-root-service' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts' with packageId '@nhhockeyplayer/shared-root-service/index.cjs@0.0.1'

10 } from '@nhhockeyplayer/shared-root-service'
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:10:8
    10 } from '@nhhockeyplayer/shared-root-service'
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/http-interceptors/http-auth.interceptor.ts:10:8
    10 } from '@nhhockeyplayer/shared-root-service'
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:11:8
    11 } from '@nhhockeyplayer/shared-root-service'
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
  libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts:12:8
    12 } from '@nhhockeyplayer/shared-root-service';
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts:13:54 - error TS6059: File '/Users/meanstack02/meanstack/dist/libs/shared/root/environment/index.cjs' is not under 'rootDir' '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src'. 'rootDir' is expected to contain all source files.
  The file is in the program because:
    Imported via '@nhhockeyplayer/shared-root-environment' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/auth-api.service.ts' with packageId '@nhhockeyplayer/shared-root-environment/index.cjs@0.0.1'
    Imported via '@nhhockeyplayer/shared-root-environment' from file '/Users/meanstack02/meanstack/libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts' with packageId '@nhhockeyplayer/shared-root-environment/index.cjs@0.0.1'

13 import { ENVIRONMENT_INSTANCE_INJECTION_TOKEN } from '@nhhockeyplayer/shared-root-environment'
                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:12:54
    12 import { ENVIRONMENT_INSTANCE_INJECTION_TOKEN } from '@nhhockeyplayer/shared-root-environment'
                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    File is included via import here.
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:11:27 - error TS2724: '"@nhhockeyplayer/shared-util-isomorphic"' has no exported member named 'IUserPojo'. Did you mean 'UserPojo'?

11 import { EnvironmentPojo, IUserPojo, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic'
                             ~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:21:92 - error TS2749: 'LocalStorageService' refers to a value, but is being used as a type here. Did you mean 'typeof LocalStorageService'?

21         @Inject(LOCALSTORAGE_SERVICE_INJECTION_TOKEN) public override localStorageService: LocalStorageService,
                                                                                              ~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:22:76 - error TS2749: 'EnvironmentPojo' refers to a value, but is being used as a type here. Did you mean 'typeof EnvironmentPojo'?

22         @Inject(ENVIRONMENT_INSTANCE_INJECTION_TOKEN) public override env: EnvironmentPojo,
                                                                              ~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:46:16 - error TS2347: Untyped function calls may not accept type arguments.

46         return this.http.get<typeof UserPojo[]>(this.apiUrl).pipe(
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:93:62 - error TS2339: Property 'emailAddress' does not exist on type 'typeof UserPojo'.

93                 users.filter((user: typeof UserPojo) => user.emailAddress === model.emailAddress)
                                                                ~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:98:19 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

98     create(model: UserPojo) {
                     ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:102:14 - error TS2339: Property 'httpHeaders' does not exist on type 'UserApiAnotherService'.

102         this.httpHeaders = {
                 ~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:137:16 - error TS2347: Untyped function calls may not accept type arguments.

137         return this.http.get<UserPojo>(this.apiUrl + id).pipe(
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:137:30 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

137         return this.http.get<UserPojo>(this.apiUrl + id).pipe(
                                 ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:153:19 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

153     update(model: UserPojo) {
                      ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:156:16 - error TS2347: Untyped function calls may not accept type arguments.

156         return this.http.put<UserPojo>(this.apiUrl + model._id, model).pipe(
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:156:30 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

156         return this.http.put<UserPojo>(this.apiUrl + model._id, model).pipe(
                                 ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:198:16 - error TS2347: Untyped function calls may not accept type arguments.

198         return this.http.get<IUserPojo[]>(`${this.apiUrl}/user`)
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:201:37 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

201     getUser(id: number): Observable<UserPojo> {
                                        ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:202:16 - error TS2347: Untyped function calls may not accept type arguments.

202         return this.http.get<UserPojo>(`${this.apiUrl}/user/${id}`)
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:202:30 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

202         return this.http.get<UserPojo>(`${this.apiUrl}/user/${id}`)
                                 ~~~~~~~~
libs/shared/root/security/auth/src/lib/api-service/user-api-another.service.ts:206:20 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

206     saveUser(user: UserPojo): Observable<any> {
                       ~~~~~~~~
libs/shared/root/security/auth/src/lib/interface/IClientDecodedJwt.ts:1:9 - error TS2724: '"@nhhockeyplayer/shared-util-isomorphic"' has no exported member named 'IUserPojo'. Did you mean 'UserPojo'?

1 import {IUserPojo} from '@nhhockeyplayer/shared-util-isomorphic'
          ~~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:6:10 - error TS2724: '"@nhhockeyplayer/shared-util-isomorphic"' has no exported member named 'IRolePojo'. Did you mean 'RolePojo'?

6 import { IRolePojo, RolePojo, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic'
           ~~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:19:11 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

19     user: UserPojo = new UserPojo({
             ~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:35:11 - error TS2749: 'RolePojo' refers to a value, but is being used as a type here. Did you mean 'typeof RolePojo'?

35     role: RolePojo | IRolePojo | null = new RolePojo({
             ~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:45:84 - error TS2749: 'LocalStorageService' refers to a value, but is being used as a type here. Did you mean 'typeof LocalStorageService'?

45         @Inject(LOCALSTORAGE_SERVICE_INJECTION_TOKEN) private localStorageService: LocalStorageService,
                                                                                      ~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/authenticated-guard.service.ts:143:32 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

143                 const theUser: UserPojo = new UserPojo({
                                   ~~~~~~~~
libs/shared/root/security/auth/src/lib/http-interceptors/http-auth.interceptor.ts:17:84 - error TS2749: 'LocalStorageService' refers to a value, but is being used as a type here. Did you mean 'typeof LocalStorageService'?

17         @Inject(LOCALSTORAGE_SERVICE_INJECTION_TOKEN) private localStorageService: LocalStorageService,
                                                                                      ~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/http-interceptors/http-auth.interceptor.ts:18:37 - error TS2749: 'ErrorHandlerService' refers to a value, but is being used as a type here. Did you mean 'typeof ErrorHandlerService'?

18         private errorDialogService: ErrorHandlerService
                                       ~~~~~~~~~~~~~~~~~~~
libs/shared/root/security/auth/src/lib/http-interceptors/http-auth.interceptor.ts:18:17 - error NG2003: No suitable injection token for parameter 'errorDialogService' of class 'HttpAuthInterceptor'.
  Consider using the @Inject decorator to specify an injection token.

18         private errorDialogService: ErrorHandlerService
                   ~~~~~~~~~~~~~~~~~~

  libs/shared/root/security/auth/src/lib/http-interceptors/http-auth.interceptor.ts:18:37
    18         private errorDialogService: ErrorHandlerService
                                           ~~~~~~~~~~~~~~~~~~~
    This type does not have a value, so it cannot be used as injection token.
libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts:7:17 - error TS2724: '"@nhhockeyplayer/shared-util-isomorphic"' has no exported member named 'IRolePojo'. Did you mean 'RolePojo'?

7 import { ERole, IRolePojo, RolePojo, RolePojoModel, UserPojo } from '@nhhockeyplayer/shared-util-isomorphic';
                  ~~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts:18:11 - error TS2749: 'UserPojo' refers to a value, but is being used as a type here. Did you mean 'typeof UserPojo'?

18     user: UserPojo = new UserPojo({
             ~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts:34:11 - error TS2749: 'RolePojo' refers to a value, but is being used as a type here. Did you mean 'typeof RolePojo'?

34     role: RolePojo | IRolePojo | null = new RolePojoModel({
             ~~~~~~~~
libs/shared/root/security/auth/src/lib/guard/auth-facade.guard.ts:47:84 - error TS2749: 'LocalStorageService' refers to a value, but is being used as a type here. Did you mean 'typeof LocalStorageService'?

47         @Inject(LOCALSTORAGE_SERVICE_INJECTION_TOKEN) private localStorageService: LocalStorageService,
                                                                                      ~~~~~~~~~~~~~~~~~~~

    at compileSourceFiles (/Users/meanstack02/meanstack/node_modules/ng-packagr/lib/ngc/compile-source-files.js:175:15)
    at async /Users/meanstack02/meanstack/node_modules/ng-packagr/lib/ng-package/entry-point/compile-ngc.transform.js:80:13
    at async /Users/meanstack02/meanstack/node_modules/ng-packagr/lib/graph/transform.js:6:29


———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 NX   Running target build for project shared-root-security-auth and 3 tasks it depends on failed

Failed tasks:

- shared-root-security-auth:build:production

Hint: run the command with --verbose for more details.


 NX   Storing terminal outputs for shared-util-isomorphic:build with hash 9047497222560283383


 NX   Storing terminal outputs for shared-root-environment:build with hash 4924468398195507234


 NX   Storing terminal outputs for shared-root-service:build with hash 14892780985118291833


 NX   Storing terminal outputs for shared-root-security-auth:build:production with hash 3628026934245186524


 NX   Nx Cloud Problems

401: Unable to connect to Nx Cloud. (code: 401)

meanstack02@admin meanstack %

Package Manager Version

npm --version 10.5.1 yarn -version 1.22.22

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

this shouldnt be happening

Im an nx developer for many years

just mixing utility libraries with angular libraries

esbuild + angular:lite or angular:package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant