Tried using the example for pulling in routes from a different file but get an error Exported variable 'routeMe' has or is using name 'ZodContext' from external module ".../node_modules/.pnpm/koa-zod-router@1.0.3_6qvceonjeialq36lgrl7dj2ju4/node_modules/koa-zod-router/dist/index" but cannot be named.
Tried using the example for pulling in routes from a different file but get an error
Exported variable 'routeMe' has or is using name 'ZodContext' from external module ".../node_modules/.pnpm/koa-zod-router@1.0.3_6qvceonjeialq36lgrl7dj2ju4/node_modules/koa-zod-router/dist/index" but cannot be named.
Sample code:
When I use
createRouteSpec
in myindex.ts
file everything works, but I would much rather have my routes defined elsewhere.Package Manager:
pnpm
Using version1.0.3
Project is ESM All peer dependencies met