CFETeam / weapp-session

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

引用 weapp-session,出现语法错误? #2

Open sunsnow8 opened 7 years ago

sunsnow8 commented 7 years ago

下面是什么原因啊

SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Function._load (/usr/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/data/release/node-weapp-session-cbb/app.js:18:16) at Module._compile (module.js:409:26)

app.js 的18行代码是:var wSession = require('weapp-session'); 很奇怪,我注释调第18行代码就没错误了,是什么原因呢

sunsnow8 commented 7 years ago

我的qq 是17007325,可以加我qq,帮我远程看一下吗,谢谢