You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Node.js application is started by node --use_strict index.js, it fails on dbMigrateInstance.up() call with the following error and stacktrace:
[ERROR] TypeError: Cannot read property 'isSilent' of null
at exports.sql (/media/data/repositories/coding/noodle-backend/node_modules/db-migrate-shared/log.js:70:14)
at Object.all (/media/data/repositories/coding/noodle-backend/node_modules/db-migrate-pg/index.js:616:18)
at Object.createMigrationsTable (/media/data/repositories/coding/noodle-backend/node_modules/db-migrate-pg/index.js:163:17)
at /media/data/repositories/coding/noodle-backend/node_modules/db-migrate/lib/commands/up.js:28:25
at /media/data/repositories/coding/noodle-backend/node_modules/db-migrate/connect.js:100:7
at /media/data/repositories/coding/noodle-backend/node_modules/db-migrate/lib/driver/index.js:104:7
at /media/data/repositories/coding/noodle-backend/node_modules/db-migrate-pg/index.js:655:5
at Connection.<anonymous> (/media/data/repositories/coding/noodle-backend/node_modules/pg/lib/client.js:178:7)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:121:20)
at Connection.emit (events.js:211:7)
at Socket.<anonymous> (/media/data/repositories/coding/noodle-backend/node_modules/pg/lib/connection.js:124:12)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
When application is started without --use_strict parameter, this error does not appear.
Expected behavior
When Node.js application is started by node --use_strict index.js, it doesn't fail.
Minimal reproduction of the problem with instructions
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm submitting a...
Current behavior
When Node.js application is started by
node --use_strict index.js
, it fails ondbMigrateInstance.up()
call with the following error and stacktrace:When application is started without
--use_strict
parameter, this error does not appear.Expected behavior
When Node.js application is started by
node --use_strict index.js
, it doesn't fail.Minimal reproduction of the problem with instructions
File
index.js
:File
database.json
:Run from the command line:
What is the motivation / use case for changing the behavior?
Bug should be fixed.
Environment
The text was updated successfully, but these errors were encountered: