Skip to content

🐛 redhat-argocd: React is not defined #4047

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

Open
2 tasks done
phac008 opened this issue May 23, 2025 · 5 comments
Open
2 tasks done

🐛 redhat-argocd: React is not defined #4047

phac008 opened this issue May 23, 2025 · 5 comments
Labels
bug Something isn't working workspace/redhat-argocd

Comments

@phac008
Copy link

phac008 commented May 23, 2025

Workspace

redhat-argocd

📜 Description

To Test app-namespace Feature (#3983) i bump backstage from v1.36.1 to v1.38.1
with
"@backstage-community/plugin-redhat-argocd": "^1.20.0",
i receive following error

Image

removing argocd or switch back to
"@backstage-community/plugin-redhat-argocd": "^1.18.0", no react message appears

yarn tsc with no errors

👍 Expected behavior

argocd app should work with v1.38.1

👎 Actual Behavior with Screenshots

see screenshot above

👟 Reproduction steps

add argocd plugin v.1.20.0 to v1.38.1

📃 Provide the context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

No, I don't have time to work on this right now

@phac008 phac008 added the bug Something isn't working label May 23, 2025
@caugello
Copy link
Contributor

caugello commented May 28, 2025

PTAL @CryptoRodeo

@CryptoRodeo
Copy link
Contributor

@phac008 Did you remove the existing node_modules directory and re-install everything?

@KarnamBhargava
Copy link

@CryptoRodeo I have tried it but facing the same issue

@CryptoRodeo
Copy link
Contributor

CryptoRodeo commented May 30, 2025

@KarnamBhargava @phac008 on top of deleting node_modules have you also deleted the dist* directory and running yarn tsc or yarn tsc:full?

@CryptoRodeo
Copy link
Contributor

CryptoRodeo commented May 30, 2025

Please ensure that you also have the latest updated files and dependencies, like tsconfig.json. Files like this were updated during the migration to v1.38.1: https://github.com/backstage/community-plugins/pull/3782/files

This looks to be a React 17 related issue and the plugin now uses React 18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working workspace/redhat-argocd
Projects
None yet
Development

No branches or pull requests

5 participants