AxaFrance / oidc-client

Light, Secure, Pure Javascript OIDC (Open ID Connect) Client. We provide also a REACT wrapper (compatible NextJS, etc.).
MIT License
582 stars 158 forks source link

Cannot read file tsconfig on fresh CRA with react-oidc-context #597

Closed chr0m1ng closed 2 years ago

chr0m1ng commented 3 years ago

Issue and Steps to Reproduce

I have created a brand new app with CRA (JS not TS) and just added the package with npm install @axa-fr/react-oidc-context --save and I'm getting the following issue:

Cannot read file 'D:/source/repos/take/install-plugins-marketplace/node_modules/tsconfig.json'.

My project is in JS but seems like tsconfig.json of react-oidc-context is trying to extend the tsconfig.json of the node_modules folder?

Versions

{
    "@axa-fr/react-oidc-context": "^3.1.6",
    "@testing-library/jest-dom": "^5.11.9",
    "@testing-library/react": "^11.2.5",
    "@testing-library/user-event": "^12.8.3",
    "core-js": "^3.9.1",
    "oidc-client": "^1.11.5",
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-scripts": "4.0.3",
    "web-vitals": "^1.1.1"
  }

Screenshots

image

Expected

No errors in fresh projects

Actual

Package is trying to fetch a file that doesn't exists.

Additional Details

Mastanka commented 2 years ago

I'm getting same error :-/ @chr0m1ng did you manage to solve it? Thanks a lot

chr0m1ng commented 2 years ago

I'm getting same error :-/ @chr0m1ng did you manage to solve it? Thanks a lot

No, I didn’t. 👎

guillaume-chervet commented 2 years ago

Do you still have the problem with the v4 version ?

guillaume-chervet commented 2 years ago

Thank you very much for that issue. Very sorry for the delay.

guillaume-chervet commented 2 years ago

I close the issue feel free to reopen it if needed.