koajs / static

Static file server middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected token {

gwl002 opened this issue · comments

image.I don't know why this happen.When I add the code like below myself,It worked fine.But
when i use this it show the error!
const { resolve } = require("path")

What version of node?

Why are you using babel-register?

koa-static@4 needs node@7.6+ :)