Skip to content

Conversation

@sahdasamier
Copy link
Contributor

Description

when i run dev that error appear "yarn run v1.22.19
warning package.json: No license field
$ tsc
src/api/claims.ts:63:21 - error TS1355: A 'const' assertions can only be applied
to references to enum membe
rs, or string, number, boolean, array, or object literals.

63 issuerIdType: (clientIssuerIdType || 'URL') as const,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/index.ts:53:9 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Recor
d<string, any>>' is not assi
gnable to parameter of type 'PathParams'.

53 app.use(compression());
~~~~~~~~~~~~~

node_modules/@types/express-serve-static-core/index.d.ts:153:5
153 <
~
154 P = ParamsDictionary,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
162 ...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody, Req
Query, LocalsObj>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    163     ): T;
        ~~~~~~~~~
    The last overload is declared here.


Found 2 errors in 2 files.

Errors  Files
     1  src/api/claims.ts:63
     1  src/index.ts:53
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
and." so i solved it 

Please provide a brief summary of the changes in this PR.

## Type of Change

- [ ] Bug fix
- [ ] New feature
- [ ] Test case
- [ ] Documentation update
- [ ] Other (please describe)

## Checklist

- [ ] I have added tests that prove my fix is effective or that my feature works (optional)
- [ ] I have added necessary documentation (if applicable)

## 4- steps to test ?

Please provide a brief summary of the steps required to test the changes in this PR.

## 5- results ?

Please provide a brief summary of the results after testing the changes in this PR.

## 7- screenshots ?

Please provide screenshots of the results after testing the changes in this PR.

@sahdasamier sahdasamier requested a review from gvelez17 August 16, 2025 23:27
@gvelez17 gvelez17 merged commit 79f8ce1 into dev Aug 17, 2025
@gvelez17 gvelez17 deleted the solve branch August 17, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants