TypeScript error on koa import
epx-nathan opened this issue · comments
When running tsc
I get the following error:
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
Line 3 in 94bcae1
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!
Fixed, please update koa-pug to 4.0.3.
FYI, koa-pug
requires typescript@^3.2
.
Thanks so much!