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
Latest version introduced a error in a old project of mine.
error: TypeError: Cannot read property 'properties' of null
at Object.keys.forEach.key (/PROJECT_PATH/node_modules/feathers-objection/lib/index.js:202:40)
at Array.forEach ()
at Object.objectify (/PROJECT_PATH/node_modules/feathers-objection/lib/index.js:165:31)
at Object.createQuery (/PROJECT_PATH/node_modules/feathers-objection/lib/index.js:298:10)
at Object._find (/PROJECT_PATH/node_modules/feathers-objection/lib/index.js:316:40)
at Object._get (/PROJECT_PATH/node_modules/feathers-objection/lib/index.js:386:17)
at q.then.row (/PROJECT_PATH/node_modules/feathers-objection/lib/index.js:455:19)
at tryCatcher (/PROJECT_PATH/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/PROJECT_PATH/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/PROJECT_PATH/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/PROJECT_PATH/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/PROJECT_PATH/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/PROJECT_PATH/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/PROJECT_PATH/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/PROJECT_PATH/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
I found changing line 202 from const property = this.jsonSchema.properties[column] || methodKey && this.jsonSchema.properties[methodKey];
to const property = this.jsonSchema && (this.jsonSchema.properties[column] || methodKey && this.jsonSchema.properties[methodKey]);
got rid of the error.
The text was updated successfully, but these errors were encountered:
Latest version introduced a error in a old project of mine.
I found changing line 202 from
const property = this.jsonSchema.properties[column] || methodKey && this.jsonSchema.properties[methodKey];
to
const property = this.jsonSchema && (this.jsonSchema.properties[column] || methodKey && this.jsonSchema.properties[methodKey]);
got rid of the error.
The text was updated successfully, but these errors were encountered: