Skip to content

How to avoid Exported variable ... has or is using name 'ZodFileDef' from external module ... but cannot be named.? #951

Answered by RobinTail
McMerph asked this question in Q&A
Discussion options

You must be logged in to vote

You can get rid of this error by disabling declaration in your tsconfig, @McMerph

It's caused by the fact that the type ZodFileDef is not exported by express-zod-api, but your code is configured for generating .d.ts files, which in some way somehow need it in order to describe your entities.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@RobinTail
Comment options

@McMerph
Comment options

@RobinTail
Comment options

@RobinTail
Comment options

@McMerph
Comment options

Answer selected by RobinTail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants