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 verified that the issue exists in the latest next-safe-action release
Is there an existing issue for this?
I have searched the existing issues and found nothing that matches
Describe the bug
When running next-safe-action v7 in a TypeScript project with "declaration: true" set in tsconfig.json, a TypeScript error occurs as soon as you try to export a created action client.
import{createSafeActionClient}from'next-safe-action';/** Property '_metadata' of exported class expression may not be private or protected.ts(4094)Property 'handleReturnedServerError' of exported class expression may not be private or protected.ts(4094)Property 'handleServerErrorLog' of exported class expression may not be private or protected.ts(4094)Property 'middlewareFns' of exported class expression may not be private or protected.ts(4094) */exportconstactionClient=createSafeActionClient();
Reproduction steps
Create a TypeScript/Next.js project with "declaration: true" in tsconfig.json
Create an action client with createSafeActionClient
Are you using the latest version of this library?
Is there an existing issue for this?
Describe the bug
When running next-safe-action v7 in a TypeScript project with "declaration: true" set in tsconfig.json, a TypeScript error occurs as soon as you try to export a created action client.
Reproduction steps
createSafeActionClient
Expected behavior
It should not error
Reproduction example
https://stackblitz.com/edit/stackblitz-starters-mvsrjh?file=app%2Faction-client.ts
Operating System
Ubuntu
Library version
7.0.0-next.14
Additional context
No response
The text was updated successfully, but these errors were encountered: