yTakkar / React-Instagram-Clone-2.0

A reactive Single-Page Instagram-Clone with some new features!! 💪📸👓 - No longer maintained.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error starting app.js at shared web hosting

BagasNS opened this issue · comments

can anyone guide me to run this app at my shared web hosting?i was follow the instruction but its still crash and this the error log on terminal.
/home/kingmed3/kingvisor.com/routes/user-routes.js:27
app.post('/user/username-checker', async (req, res) => {
^

SyntaxError: Unexpected token (
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:549:28)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object. (/home/kingmed3/kingvisor.com/app.js:28:11)
[nodemon] app crashed - waiting for file changes before starting...

Does it support async/await?

how to check it?

never mind async/await start support at node.js v7 and my web using v5, thanks for info @yTakkar

running well on v9.5.0 web shared hosting. Great work!