typeorm: Columns without specified types throws promise rejections for postgres

If I’m understanding correctly, I should be able to do something like this:

    @Column()
    text: string;

In a model definition and still have the type be infered by TypeORM (stop me dead in my tracks if I’m wrong). However, when I do this, I get the following errors from Node:

(node:540) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): DataTypeNotSupportedError: Data type "undefined" in "Post.text" is not supported by "postgres" database.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 21 (12 by maintainers)

Most upvoted comments

its a bug, it was already fixed in next. I’ll also publish a 0.1.12 with this fix