Closed jeremymeng closed 3 months ago
This is not a bug. The error happens because the TS compiler cant tell if you're importing a type or a run-time value.
To be explicit, you can use import type
.
For the TS compiler to warn you about this, you can enable https://www.typescriptlang.org/tsconfig/#verbatimModuleSyntax
Acknowledgements
Minimal reproduction URL
https://github.com/jeremymeng/tsx-repo
Problem & expected behavior (under 200 words)
Skip this section and let your reproduction do the talking...
Not sure whether it is related, but we are using
export * from "./models/index.js";
pattern in ./generated/index.jsBut if you really need to explain, keep it under 200 words:
Bugs are expected to be fixed by those affected by it
Compensating engineering work will speed up resolution and support the project