Skip to content

Problem using TSchema from an internally library #1115

Answered by paulius-valiunas
cesxhin asked this question in Q&A
Discussion options

You must be logged in to vote

@cesxhin the error just means you have two instances of Typebox imported somewhere in your dependency tree. We recently ran into the same issue and we made sure we only have one version of it in our lock file, but the issue was still there. The problem turned out to be that we were importing it as an ES module (import keyword) in one place, and as a CommonJs module (require) in another. Apparently symbols are tracked separately for CJS and ESM, not only for different versions.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cesxhin
Comment options

@paulius-valiunas
Comment options

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