SyntaxError: Unexpected token ...
g8up opened this issue · 0 comments
g8up commented
- node v8.2.1
got an error:
/root/code/node-crx-mid/node_modules/json-sql-builder2/sql/helpers/functions/string/left/left.js:248
people_id: { $column: { $type: 'INT', ...NOT_NULL, ...PRIMARY_KEY } },
^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at SQLBuilder._register (/root/code/node-crx-mid/node_modules/json-sql-builder2/lib/builder.js:474:19)
Because the object spread operatior is not supported in node v8.2.1:
json-sql-builder2/sql/helpers/functions/string/left/left.js
Lines 247 to 254 in 12c6a30