Skip to content
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

npm run build error #119

Closed
imajinyun opened this issue Feb 16, 2025 · 1 comment
Closed

npm run build error #119

imajinyun opened this issue Feb 16, 2025 · 1 comment

Comments

@imajinyun
Copy link

What should i do if i encounter the following error when running npm run build?

npm run build

> [email protected] build
> tsc -b && vite build

src/routes/online-user.tsx:25:27 - error TS2724: '"@/types"' has no exported member named 'ModelOnlineUserApi'. Did you mean 'ModelOnlineUser'?

25 import { ModelOnlineUser, ModelOnlineUserApi } from "@/types"
                             ~~~~~~~~~~~~~~~~~~


Found 1 error.
@uubulb
Copy link
Contributor

uubulb commented Feb 28, 2025

run npx swagger-typescript-api -p http://localhost:8008/swagger/doc.json -o ./src/types -n api.ts --no-client --union-enums to update definitions

@uubulb uubulb closed this as completed Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants