-
Notifications
You must be signed in to change notification settings - Fork 133
Several source map warnings after update react-scripts to v5.0.0 #176
Comments
I have the same issue, it's very annoying |
Same. It blows up and fails on 9 files. |
Hello, Same issue for me. keycloak-js: 16.1.0 Problem : Affected files :
|
Hey, |
This problem still exists, any help? |
Hello, Yes, i used the answer of @vitdolinek |
Hello, thanks for the response. Ya that works, but thats more of a work around or temporary fix. We will need proper fix on the issue i guess. |
Any update ? |
Same problem here. If it helps any one we disabled warnings for the time being with:
|
Any update? |
Facing same issue any help ? |
Given that its been months, without answers, on this or #100, this will have to do. |
Same issue. "keycloak-js": "^18.0.1" Any solution for this? |
Still happening with: |
Same issue here: package.json
After npm start, a couple of :
And then webpack formatted output
|
According to CRA, sourcemaps should be fixed in this package, as the errors/warnings stem from the package. See the following thread too:
|
I submitted a PR to fix this #200 |
WARNING in ./node_modules/@react-keycloak/core/lib/context.js WARNING in ./node_modules/@react-keycloak/core/lib/index.js WARNING in ./node_modules/@react-keycloak/core/lib/provider.js WARNING in ./node_modules/@react-keycloak/core/lib/types.js WARNING in ./node_modules/@react-keycloak/web/lib/context.js WARNING in ./node_modules/@react-keycloak/web/lib/index.js WARNING in ./node_modules/@react-keycloak/web/lib/provider.js WARNING in ./node_modules/@react-keycloak/web/lib/useKeycloak.js WARNING in ./node_modules/@react-keycloak/web/lib/withKeycloak.js I am getting these errors and also i am not able to open up the keycloak login page when i click login button from my frontend app. |
could anyone help me with this please? |
Those warnings and your issue are not related. The warnings can be safely ignored. Please open a different ticket for your issue. |
This one, suggested by @Jaakko123, works like a charm and you don't need to disable sourcemaps for your entire project. BTW, you need to add craco to your project for this to work - very nice library indeed, I didn't know about it. 😃 |
Describe the bug
Almost all *.js files at 'node_modules/@reactkeycloak' are getting source map warnings after I updated react-scripts v4.0.3 to v5.0.0. One example:
WARNING in ./node_modules/@react-keycloak/core/lib/context.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/home/user/Projetos/devyx/client-account/node_modules/@react-keycloak/core/lib/@react-keycloak/core/context.ts' file: Error: ENOENT: no such file or directory, open '/home/user/Projetos/devyx/client-account/node_modules/@react-keycloak/core/lib/@react-keycloak/core/context.ts'
@ ./node_modules/@react-keycloak/core/lib/index.js 2:0-26 2:0-26
@ ./node_modules/@react-keycloak/web/lib/provider.js 1:0-58 3:35-53
@ ./node_modules/@react-keycloak/web/lib/index.js 1:0-27 1:0-27
@ ./src/App.tsx 7:0-60 32:33-54
@ ./src/index.tsx 8:0-24 14:33-36
To Reproduce
Steps to reproduce the behavior:
I've created a new repository that reprocues those warnings:
https://github.com/joaoarieira/react-keycloak-test
yarn
, thenyarn start
Expected behavior
Show no warnings spam.
The text was updated successfully, but these errors were encountered: