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
Trying out the new version 1.2.0, an error is thrown because the includes array instance method is not defined (it is new in ES2015). I'm using node version 4.5.0 (where this ES2015 feature is missing):
TypeError: _this3.jsonColumns.includes is not a function
at /opt/bitbe/node_modules/bookshelf-json-columns/dist/index.js:100:32
at Array.forEach (native)
at save (/opt/bitbe/node_modules/bookshelf-json-columns/dist/index.js:99:31)
...
Trying out the new version 1.2.0, an error is thrown because the
includes
array instance method is not defined (it is new in ES2015). I'm using node version 4.5.0 (where this ES2015 feature is missing):You could maybe rely on the lodash.includes module, or the array-includes module or simply work around bringing an additional dependency by using
array.indexOf
.The text was updated successfully, but these errors were encountered: