-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Closed
Description
Issue Description
There's a TypeScript error in the project related to the PrivateService which appears to be missing from the client module:
TS2305: Module '"../../src/client"' has no exported member 'PrivateService'.
Location
- File:
/frontend/tests/utils/privateApi.ts - Line:
import { OpenAPI, PrivateService } from "../../src/client"
Hypothesis (might be incorrect)
Based on the comment in privateApi.ts:
// Note: the `PrivateService` is only available when generating the client
// for local environmentsIt appears that PrivateService might be conditionally generated only in local development environments. The client generation process seems to be controlled by:
scripts/generate-client.sh- The
generate-clientscript infrontend/package.jsonwhich usesopenapi-ts
Possible solutions to investigate:
- Generate the client with the correct environment variable to include
PrivateService - Modify
privateApi.tsto use existing services likeUsersServiceinstead - Add conditional logic to check if
PrivateServiceexists before using it
Disclaimer
This is just a hypothesis based on code analysis and may be incorrect. Further investigation is needed to confirm the actual cause and find the proper solution.
Next steps
- Check how the client is generated in different environments
- Review API documentation to understand what
PrivateServicewas intended to do - Consider the appropriate fix based on project requirements
Metadata
Metadata
Assignees
Labels
No labels