We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
static is a reserved word in ES6, so import static from 'koa-static' fails to transpile:
import static from 'koa-static'
> babel-node --harmony index.js /Users/boris/foobar/node_modules/babel/node_modules/babel-core/lib/babel/helpers/parse.js:80 throw err; ^ SyntaxError: /Users/boris/foobar/index.js: The keyword 'static' is reserved (4:7) 3 | import route from 'koa-route' > 4 | import static from 'koa-static'
related to #32
The text was updated successfully, but these errors were encountered:
for anyone that has this issue in the future, the solution is simpler than i thought - just implicitly alias the module name:
import koaStatic from 'koa-static'
es6 doesn't care what you call a module's default export.
Sorry, something went wrong.
No branches or pull requests
static is a reserved word in ES6, so
import static from 'koa-static'
fails to transpile:related to #32
The text was updated successfully, but these errors were encountered: