React Version mismatch found during local development
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- react, typescript
- Domain
- authentication, frontend
Research direction
Reproduce the crash with the Vite setup using the shown main.tsx and App.tsx files, focusing on the @asgardeo/react UserDropdown component after login. Compare the React versions involved in the app and SDK, then verify that the authenticated app renders UserDropdown without crashing.
Written by the indexing model from the issue text.
Description
Description
When building a Vite app with React, the app crashes after Login
Steps to Reproduce
Create a Vite App, use the Asgardeo SDK.
Codes used
main.tsx
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.jsx'
import { AsgardeoProvider } from '@asgardeo/react'
createRoot(document.getElementById('root')!).render(
<StrictMode>
<AsgardeoProvider
baseUrl="https://localhost:8090"
signInUrl="http://localhost:5173/signin"
applicationId="019e2459-5462-7f91-8f39-3d355d1a6359"
platform="AsgardeoV2"
>
<App />
</AsgardeoProvider>
</StrictMode>
)
App.tsx
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'
import { SignIn, SignedIn, SignedOut, SignInButton, SignOutButton, UserDropdown } from '@asgardeo/react'
import './App.css'
function App() {
return (
<Router>
<header>
<SignedIn>
<UserDropdown />
<SignOutButton />
</SignedIn>
<SignedOut>
<SignInButton />
</SignedOut>
</header>
<Routes>
<Route path="/signin" element={<SignIn />} />
</Routes>
</Router>
)
}
export default App
The issue hints to something internal to the <UserDropdown /> component
Please select the area the issue is related to
@asgardeo/express, @asgardeo/react
Version
22ee26dd5728c6a2f003d7aa5702ba088c044ad4
Environment Details (with versions)
Create a Vite App, and setup the thunder-id/thunder repository instructions.
Note that this is not related to thunder, by any means and is a react version mismatch, found during local development.
Reporter Checklist
- I have searched the existing issues and this is not a duplicate.
- I have provided all the necessary information.
- I have tested the issue on the latest version of the package.
- Dominant language
- TypeScript
- Stars
- 18
- Forks
- 67
- Avg merge
- 4h 6m
- Merged PRs (30d)
- 13
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from asgardeo/javascript
-
Bug: SignInButton render prop usage in "react-tanstack-router" sample missing "onClick={signIn}" OpenType/Bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
asgardeo/javascript#572 ·
-
Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
asgardeo/javascript#571 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
asgardeo/javascript#485 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
asgardeo/javascript#527 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
asgardeo/javascript#522 · 2 comments ·
All issues in asgardeo/javascript
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·