Closed kai712 closed 6 years ago
Which version of Node.js are you using? Basic support for const
has existed without flags since at least v4.
See: https://github.com/mjbondra/koa-session-mongoose#prerequisites
This store requires node@>=8.0.0, koa@>=2.0.0 and koa-session@>=5.0.0.
If you are using older dependencies, consider using koa-session-mongoose@\^1.0.0.
This looks like an issue with the use of the spread property ...schema.updatedAt
in the object literal. This requires node@>=8.3.0
, I will update the readme to reflect that.
http://node.green/#ESNEXT-candidate--stage-3--object-rest-spread-properties-object-spread-properties
C:\Users\Administrator\Desktop\koa-shop\Koa-onlineShop-api\node_modules_koa-session-mongoose@2.0.2@koa-session-mongoose\lib\index.js:13 const updatedAt = { ...schema.updatedAt, expires }; ^^^
SyntaxError: Unexpected token ...