Serve: Throwing a Syntax Error when deploying static sites with now.

Created on 6 Feb 2017  Â·  4Comments  Â·  Source: vercel/serve

Not sure if is the right place to report it, but trying to deploy a static site using now, the console show this error:

> Initializing…
> Building
> â–² npm install
> â§— Installing:
>  ‣ serve@^3.2.0
> ✓ Installed 167 modules [14s]
> â–² npm start
> > dist@ start /home/nowuser/src
> > serve ./content
> /home/nowuser/src/node_modules/serve/lib/listening.js:7
> const copyToClipboard = async text => {
>                               ^^^^
> SyntaxError: Unexpected identifier
>     at Object.exports.runInThisContext (vm.js:76:16)
>     at Module._compile (module.js:545:28)
>     at Module._extensions..js (module.js:582:10)
>     at Object.require.extensions.(anonymous function) [as .js] (/home/nowuser/src/node_modules/async-to-gen/register.js:42:5)
>     at Module.load (module.js:490:32)
>     at tryModuleLoad (module.js:449:12)
>     at Function.Module._load (module.js:441:3)
>     at Module.require (module.js:500:17)
>     at require (internal/module.js:20:19)
>     at Object.<anonymous> (/home/nowuser/src/node_modules/serve/lib/index.js:11:19)

Most helpful comment

All 4 comments

seeing the same error

works for me for versions <= 3.2.2

Ran through a git blame and found that line added here

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  Â·  7Comments

Olexiy665 picture Olexiy665  Â·  3Comments

TamasHuang picture TamasHuang  Â·  7Comments

malinda1986 picture malinda1986  Â·  6Comments

k7sleeper picture k7sleeper  Â·  7Comments