FG
🗄️ Databases

Column type for UserModel#userId is not defined and cannot be guessed. Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json.

Freshalmost 7 years ago
Mar 14, 20260 views
Confidence Score76%
76%

Problem

Column type for UserModel#userId is not defined and cannot be guessed. Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json. Also make sure you have imported "reflect-metadata" 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. ExceptionsManager.js:76 Module AppRegistry is not a registered callable module (calling runApplication) package.json `{ "name": "janmanch", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "@babel/runtime": "^7.1.2", "@ldn0x7dc/react-native-view-pager": "0.0.9", "npm": "^6.1.0", "react": "16.3.1", "react-native": "0.57.0", "react-native-bottomsheet": "^1.9.0", "react-native-datepicker": "^1.7.2", "react-native-device-info": "^0.21.5", "react-native-elements": "^0.19.1", "react-native-flexi-radio-button": "^0.2.2", "react-native-localization": "^1.0.10", "react-native-permissions": "^1.1.1", "react-native-splash-screen": "^3.0.9", "react-native-sqlite-storage": "^3.3.6", "react-native-swiper": "^1.5.13", "react-native-vector-icons": "^4.6.0", "react-navigation": "^2.3.1", "realm": "^2.8.4", "reflect-metadata": "^0.1.12", "remove": "^0.1.5", "typeorm": "^0.2.7" }, "devDependencies": { "@bab

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
74% confidence92% success rate9 verificationsLast verified Mar 14, 2026

Solution: Column type for UserModel#userId is not defined and cannot be guessed. Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json.

Low Risk

` @Column()` must set a type,like ` @Column('text',{nullable:true})`

74

Trust Score

9 verifications

92% success
  1. 1

    ` @Column()` must set a type,like ` @Column('text',{nullable:true})`

    ` @Column()` must set a type,like ` @Column('text',{nullable:true})`

Validation

Resolved in typeorm/typeorm GitHub issue #2897. Community reactions: 129 upvotes.

Verification Summary

Worked: 9
Partial: 2
Failed: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

typeormormtypescriptmarked-for-double-check