Theodo-UK / nestjs-admin

A generic administration interface for TypeORM entities
https://nestjs-admin.com
MIT License
534 stars 59 forks source link

Unable to generate create-admin-user #167

Open fstn opened 4 years ago

fstn commented 4 years ago

When I try to do:

npx ts-node node_modules/.bin/typeorm migration:generate -n "create-admin-user"

It throws: Cannot set property EntityManager of # which has only a getter

Dependencies:

"@bugsnag/js": "^7.0.1", "@bugsnag/plugin-express": "^7.0.1", "@nestjs/common": "^7.0.9", "@nestjs/config": "^0.4.0", "@nestjs/core": "^7.0.1", "@nestjs/jwt": "^7.0.0", "@nestjs/passport": "^7.0.0", "@nestjs/platform-express": "^7.0.1", "@nestjs/schedule": "^0.3.1", "@nestjs/serve-static": "^2.1.0", "@nestjs/typeorm": "^7.0.0", "@nestjs/websockets": "^7.0.6", "@nestjsx/crud": "^4.5.0", "@nestjsx/crud-typeorm": "^4.5.0", "@sendgrid/mail": "^7.0.1", "@types/stripe-v3": "^3.1.17", "atob": "^2.1.2", "bcrypt": "3.0.8", "btoa": "^1.2.1", "class-transformer": "^0.2.3", "class-validator": "^0.11.1", "dotenv": "^8.2.0", "g": "^2.0.1", "generate-password": "^1.5.1", "jsonwebtoken": "^8.5.1", "loadash": "^1.0.0", "lodash": "^4.17.15", "moment": "^2.25.1", "nest-cli": "0.0.5", "nest-emitter": "^1.1.0", "nestjs-admin": "^0.4.0", "passport": "^0.4.1", "passport-google-oauth": "^2.0.0", "passport-jwt": "^4.0.0", "passport-local": "^1.0.0", "pg": "^7.18.2", "reflect-metadata": "^0.1.13", "rimraf": "^3.0.2", "rxjs": "^6.5.4", "stripe": "^8.46.0", "typeorm": "^0.2.24"

janober commented 4 years ago

Issue is tslib related as found here: https://github.com/typeorm/typeorm/issues/6054

There you also find the temporary workaround.