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
I used the GitHub search to find a similar question and didn't find it.
I searched in the documentation/README.
I already searched in Google "How to do X" and didn't find any information.
I already read and followed all the tutorial in the docs/README and didn't find an answer.
Commit to Help
I commit to help with one of those options 👆
Example Code
npm run dev
Description
I cloned the repo moved to frontend directory, followed the frontend README: updated the openapi.json, cleaned the code and generated client. all seemed to work fine, but when i try to run npm run dev i get just a bunch of errors:
✘ [ERROR] No matching export in "src/client/index.ts" for import "UsersService"
src/components/Admin/AddUser.tsx:20:26:
20 │ import { type UserCreate, UsersService } from "../../client"
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "UsersService"
src/components/Admin/EditUser.tsx:24:2:
24 │ UsersService,
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "ItemsService"
src/components/Common/DeleteAlert.tsx:14:9:
14 │ import { ItemsService, UsersService } from "../../client"
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "UsersService"
src/components/Common/DeleteAlert.tsx:14:23:
14 │ import { ItemsService, UsersService } from "../../client"
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "ItemsService"
src/components/Items/AddItem.tsx:18:41:
18 │ ...type ApiError, type ItemCreate, ItemsService } from "../../client"
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "ItemsService"
src/components/Items/EditItem.tsx:22:2:
22 │ ItemsService,
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "UsersService"
src/components/UserSettings/ChangePassword.tsx:15:45:
15 │ ... ApiError, type UpdatePassword, UsersService } from "../../client"
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "UsersService"
src/components/UserSettings/DeleteConfirmation.tsx:14:9:
14 │ import { UsersService, type ApiError } from "../../client"
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "UsersService"
src/components/UserSettings/UserInformation.tsx:22:2:
22 │ UsersService,
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "LoginService"
src/hooks/useAuth.ts:9:2:
9 │ LoginService,
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "UsersService"
src/hooks/useAuth.ts:11:2:
11 │ UsersService,
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "UsersService"
src/routes/_layout/admin.tsx:20:26:
20 │ import { type UserPublic, UsersService } from "../../client"
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "ItemsService"
src/routes/_layout/items.tsx:19:9:
19 │ import { ItemsService } from "../../client"
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "LoginService"
src/routes/recover-password.tsx:13:9:
13 │ import { LoginService } from "../client"
╵ ~~~~~~~~~~~~
✘ [ERROR] No matching export in "src/client/index.ts" for import "LoginService"
src/routes/reset-password.tsx:15:24:
15 │ import { type ApiError, LoginService, type NewPassword } from "../...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
I cloned the repo moved to frontend directory, followed the frontend README: updated the openapi.json, cleaned the code and generated client. all seemed to work fine, but when i try to run
npm run dev
i get just a bunch of errors:what am I missing?
Operating System
Linux
Operating System Details
linux manjaro, node 20
Python Version
Python 3.11.7
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions