Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动报常量语法错误 #13

Open
yahahaff opened this issue May 9, 2017 · 5 comments
Open

启动报常量语法错误 #13

yahahaff opened this issue May 9, 2017 · 5 comments

Comments

@yahahaff
Copy link

yahahaff commented May 9, 2017

/root/AMP/node_modules/koa/lib/response.js:47
const { res } = this;
^

SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Module._extensions..js (module.js:416:10)
at Object.require.extensions.(anonymous function) [as .js] (/root/AMP/node_modules/babel-core/node_modules/babel-register/lib/node.js:152:7)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/root/AMP/node_modules/koa/lib/application.js:11:18)
at Module._compile (module.js:409:26)

@luoye-fe
Copy link
Contributor

luoye-fe commented May 9, 2017

node 版本的问题,使用最新版 node 就好

@yahahaff
Copy link
Author

yahahaff commented May 9, 2017 via email

@yahahaff
Copy link
Author

yahahaff commented May 9, 2017 via email

@luoye-fe
Copy link
Contributor

luoye-fe commented May 9, 2017

views/index.production.html 这个文件是前端构建之后产出的,运行下 npm run build 进行前端生产环境构建

@yahahaff
Copy link
Author

yahahaff commented May 11, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants