koa-better-modules / joi-router

Easy, rich and fully validated koa routing.
MIT License
4 stars 4 forks source link

Typescript error - differs from already included file name '/node_modules/@types/Koa/index.d.ts' only in casing #8

Closed BryceMehring closed 8 months ago

BryceMehring commented 1 year ago

I'm getting the following error:

TS1149: File name '/node_modules/@types/koa/index.d.ts' differs from already included file name '/node_modules/@types/Koa/index.d.ts' only in casing.

Imported via "Koa" from file '/node_modules/@koa-better-modules/joi-router/joi-router.d.ts' with packageId '@types/koa/index.d.ts@2.13.6'

Replacing Koa with koa in /node_modules/@koa-better-modules/joi-router/joi-router.d.ts fixes this error. I have forceConsistentCasingInFileNames enabled in my tsconfig.

j-waaang commented 1 year ago

We stumbled across the same issue and made a PR https://github.com/koa-better-modules/joi-router/pull/9

3imed-jaberi commented 8 months ago

v12.0.0 is here!