-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"TypeError: Cannot read property 'replace' of undefined" on running the cli query
command with several SQL statements
#6612
Comments
I also have this problem, is it possible to re-open the issue?
|
Also having this issue, are there any workarounds? |
My workaround is to pin to version "typeorm": "0.2.25". It'd be nice to get this fixed in the later versions |
Same issue here |
Reverting back to 0.2.28 worked for me |
i Same issue here import { EntityRepository, Repository ,EntityManager} from "typeorm"; run code is issue here {"statusCode":500},"err":{"type":"TypeError","message":"Cannot read property 'replace' of undefined","stack":"TypeError: Cannot read property 'replace' of undefined\n at D:\UwAmp\www\aDEV\fastify_api\src\modules\user\controllers\usercontroller.ts:57:30\n at step (D:\UwAmp\www\aDEV\fastify_api\src\modules\user\controllers\usercontroller.ts:33:23)\n at Object.next (D:\UwAmp\www\aDEV\fastify_api\src\modules\user\controllers\usercontroller.ts:14:53)\n at D:\UwAmp\www\aDEV\fastify_api\src\modules\user\controllers\usercontroller.ts:8:71\n at new Promise ()\n at __awaiter (D:\UwAmp\www\aDEV\fastify_api\src\modules\user\controllers\usercontroller.ts:4:12)\n at Object. |
Issue type:
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[x]
postgres
[ ]
cockroachdb
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
On running the cli
query
command with several SQL statements all wrapped with double quotes I receive the following error from the cli-highlight:The text was updated successfully, but these errors were encountered: