Migration from v4 to v5 bringing up typescript errors for Trans Macro #2314
Replies: 1 comment
-
Something is wrong in your code. Most likely macro is not properly setup or some import path is incorrect. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
So I am currently running v4 of lingui on a project. I have tried to migrate to v5 but upon migrating and using the code mod to change the imports I get the following error.
"'Trans' cannot be used as a JSX component.
Its return type 'React Node' is not a valid JSX element.
Type 'undefined' is not assignable to type 'Element | null'."
I have used the Trans macro across a lot of files and it worked fine on v4 so just wondered if there was something I've done wrong or a breaking change was made to it?
Beta Was this translation helpful? Give feedback.
All reactions