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
Disclaimer: I am not entirely sure I understand everything that is happening here, but I'll try my best to make sense.
I am using Typeorm while compiling Typescript with Babel 7, so I need experimentalDecorators (with @babel/plugin-proposal-decorators) and emitDecoratorMetadata (with this package).
Everything runs fine, but when I run the output code, I get the following error: Data type "undefined" in "CharacterEntity.gender" is not supported by "mysql" database., which refer to:
Sorry for the extremely late answer. However, this problem arises from missing type informations (that TSC resolves thanks to its checker that is not available here in Babel. I'd try to add something like an hack for this kind of situation, like a leading comment, but the best thing for your situation now is just to rely on hand-configured varchar type for the column
Disclaimer: I am not entirely sure I understand everything that is happening here, but I'll try my best to make sense.
I am using Typeorm while compiling Typescript with Babel 7, so I need experimentalDecorators (with @babel/plugin-proposal-decorators) and emitDecoratorMetadata (with this package).
Everything runs fine, but when I run the output code, I get the following error:
Data type "undefined" in "CharacterEntity.gender" is not supported by "mysql" database.
, which refer to:When looking at the code procuded by Babel, I believe only these lines are relevant:
So this issue is blocking me. Note that everything compiles and runs fine when using the Typescript compiler, which seems to produce:
I hope this is clear enough to provide enough information, it would be great if you could look into this or simply explain what I'm doing wrong :)
Thanks !
The text was updated successfully, but these errors were encountered: