CFETeam / weapp-session

为微信小程序提供会话管理功能
Other
173 stars 29 forks source link

const { headers, errors } = require('./constants'); 这句不能执行? #3

Closed lvsjack closed 7 years ago

lvsjack commented 7 years ago
⋊> ~/D/w/server on master ⨯ node app.js                                                                                                                                                     12:18:36
/XXXX/XX/XXX/XXXXXXXXXX/server/node_modules/weapp-session/index.js:4
const { headers, errors } = require('./constants');
      ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/XXX/XXXX/XXXXXXX/weapp-demo-session-master/server/app.js:6:22)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)