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

SyntaxError: Unexpected token function #37

Open
Harfus opened this issue Feb 10, 2018 · 0 comments
Open

SyntaxError: Unexpected token function #37

Harfus opened this issue Feb 10, 2018 · 0 comments

Comments

@Harfus
Copy link

Harfus commented Feb 10, 2018

Hello,

I downloaded and built the package but encountered this error.


harfus-MacBook-Pro-2:mobx-starter harfuab$ node index.js --dev
INF Running on port 2002
/Users/harfuab/dev/mobx/support-service/mobx-starter/node_modules/koa-mount/index.js:48
return async function (ctx, upstream){
^^^^^^^^
SyntaxError: Unexpected token function
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Module._extensions..js (module.js:579:10)
at Object.require.extensions.(anonymous function) [as .js] (/Users/harfuab/dev/mobx/support-service/mobx-starter/node_modules/babel-register/lib/node.js:152:7)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/Users/harfuab/dev/mobx/support-service/mobx-starter/server/server.js:18:17)
at Module._compile (module.js:570:32)
at loader (/Users/harfuab/dev/mobx/support-service/mobx-starter/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/Users/harfuab/dev/mobx/support-service/mobx-starter/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
Asset Size Chunks Chunk Names
bundle.js 2.58 MB 0 [emitted] [big] bundle
bundle.css 5.89 kB 0 [emitted] bundle
bundle.js.map 2.81 MB 0 [emitted] bundle
bundle.css.map 16.5 kB 0 [emitted] bundle
webpack: Compiled successfully.


If I browse to http://localhost:2002, I got

Cannot GET /

I appreciate if you provide some pointers.

Thanks

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

1 participant