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

TypeScript error on koa import #28

Closed
epx-nathan opened this issue Dec 16, 2019 · 2 comments
Closed

TypeScript error on koa import #28

epx-nathan opened this issue Dec 16, 2019 · 2 comments

Comments

@epx-nathan
Copy link

When running tsc I get the following error:

Screen Shot 2019-12-16 at 11 31 52 AM

If I update the import statement in the referenced dist file (koa-pug/dist/index.d.ts) to import * as Koa from 'koa' the error goes away.

I'm using the following package versions:

  • koa-pug: 4.0.2
  • koa: 2.11.0
  • @types/koa: 2.11.0

import Koa from 'koa'

I don't know much about Typescript, but if you were able to update your import signature for Koa, I assume that would fix this issue for me and for anyone else who might have it. Also open to a different solution for resolving this issue!

Let me know if there are any further details I can provide.

Thanks!

@chrisyip
Copy link
Owner

Fixed, please update koa-pug to 4.0.3.

FYI, koa-pug requires typescript@^3.2.

@epx-nathan
Copy link
Author

Thanks so much!

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

2 participants