title: Typescript Decorator and Babel: ColumnTypeUndefinedError: Column type for Exercise#name is not defined and cannot be guessed
body: <p>Despite having <code>babel-plugin-transform-typescript-metadata</code> installed I have this error below:</p>
  <pre><code>ColumnTypeUndefinedError: Column type for Exercise#name is not defined and cannot be guessed. 
  Make sure you have turned on an &quot;emitDecoratorMetadata&quot;: true option in tsconfig.json. 
  Also make sure you have imported &quot;reflect-metadata&quot; on top of the main entry file in your application (before any entity imported).
  If you are using JavaScript instead of TypeScript you must explicitly provide a column type.
  </code></pre>
  <p>I have tried this <a href="https://stackoverflow.com/questions/53015862/metadata-retention-with-typescript-babel-7-decorators">alternate plugin implementation</a> but to no avail
  I am using typescript and I have <code>import 'reflect-metadata';</code> in relevant codes..</p>
  <p><strong>Here are my codes</strong></p>
  <p>Exercise.tsx</p>
  <pre><code>import {Entity,Column, PrimaryGeneratedColumn} from &quot;typeorm/browser&quot;;
  
  
  @Entity(&quot;Exercise&quot;)
  export class Exercise{
  
      @PrimaryGeneratedColumn()
      id!:number;
  
      @Column()
      name!: Text;
  
      @Column()
      notes:Text;
  
      @Column()
      imageJSON:Text;
  }
  </code></pre>
  <p>.babelrc</p>
  <pre><code>{
      &quot;plugins&quot;: [
        &quot;babel-plugin-transform-typescript-metadata&quot;,
        [&quot;@babel/plugin-proposal-decorators&quot;, { &quot;legacy&quot;: true }],
        [&quot;@babel/plugin-proposal-class-properties&quot;, { &quot;loose&quot;: true }],
      ],
      &quot;presets&quot;: [
        &quot;@babel/preset-typescript&quot;
      ]
    }
  </code></pre>
  <p>snippet of package.json</p>
  <pre><code>...
  
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;^7.12.9&quot;,
      &quot;@types/node&quot;: &quot;^18.0.0&quot;,
      &quot;@types/react&quot;: &quot;~17.0.21&quot;,
      &quot;@types/react-native&quot;: &quot;~0.66.13&quot;,
      &quot;babel-plugin-transform-typescript-metadata&quot;: &quot;^0.2.2&quot;,
      &quot;typescript&quot;: &quot;~4.3.5&quot;
    },
  ...
  
  </code></pre>
  <p>tsconfig.json</p>
  <pre><code>{
    &quot;compilerOptions&quot;: {
      &quot;experimentalDecorators&quot;: true,
      &quot;emitDecoratorMetadata&quot;:true,
  
    },
    &quot;extends&quot;: &quot;expo/tsconfig.base&quot;,
    &quot;compileOnSave&quot;: true,
    &quot;include&quot;:[
      &quot;entities&quot;
    ]
  }
  </code></pre>