You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
π Bug: Vite Internal Server Error β await Used Outside async FunctionΒ #135
While running the frontend development server using Vite, the application crashes with an internal server error related to incorrect usage of await.
The error indicates that await is being used outside of an async function, which is not allowed in regular function scopes in TypeScript/JavaScript.
β Error Message
[vite] Internal server error: `await` is only allowed within async functions and at the top levels of modules
Plugin: vite:oxc
File: src/shared/component/v1/LoginPage.tsx:80:23
The await keyword is used inside a function that is not marked as async, or it is placed directly inside a React component body instead of an event handler or effect.
Common causes:
await used directly inside a React component body
await used inside a normal function instead of an async function
Missing async keyword on a handler like handleLogin
β Expected Behavior
The login API call should execute inside an async function
The Vite dev server should start without crashing
Login flow should work correctly
π οΈ Suggested Fix
Wrap the await call inside an async function, for example:
We'll review it as soon as possible. We truly appreciate your contributions! β¨
Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. π
Hi! I'm a senior software engineering student. I've noticed the Vite internal server error regarding the await usage. I would like to fix this bug. Could you please assign it to me?
Activity
github-actions commentedon Jan 12, 2026
Thank you for raising this issue!
We'll review it as soon as possible. We truly appreciate your contributions! β¨
abhishek-nexgen-dev commentedon Jan 12, 2026
@Rohanrathod7 Do you want to fix this
euzghe commentedon Jan 12, 2026
Hi! I'm a senior software engineering student. I've noticed the Vite internal server error regarding the await usage. I would like to fix this bug. Could you please assign it to me?
Rohanrathod7 commentedon Jan 12, 2026
I would love to but if @euzghe can solve it today itself you can assign him