-
Notifications
You must be signed in to change notification settings - Fork 51
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
Cannot read properties of undefined (reading 'uid') error! #177
Comments
Sure! @raul-mg To extend the solution, you need to modify your main file where the Elysia app is initialized. Here’s how the implementation looks: import { Elysia } from "elysia";
const app = new Elysia();
app.use(
swagger({
path: "/docs",
exclude: ["/docs", "/docs/json"],
theme: "dark",
documentation: {
servers: [
{
url: "/",
},
],
info: {
title: "****",
version: "1.0.0",
},
components: {
securitySchemes: {
bearerAuth: {
scheme: "bearer",
type: "http",
bearerFormat: "JWT",
},
},
},
},
})
); Simply include this in your main file, and it should work perfectly! |
Excelent, just need documentation element and works, thanks |
For this fix, I think just update the dependency @scalar/[email protected] to @scalar/[email protected]. |
There was a time swagger didn't work due to some conflict with
|
Hi, I'm experiencing a sudden and puzzling bug in my Swagger API project. Upon attempting to open the project today, I'm consistently encountering the following error across all endpoints:
"TypeError: Cannot read properties of undefined (reading 'uid')"
I've tried updating my package.json to utilize the latest version of @elysiajs/swagger (^1.1.6), but unfortunately, the issue persists.
Any guidance or support would be greatly appreciated.
The text was updated successfully, but these errors were encountered: