Closed b3b00 closed 7 months ago
Hey @b3b00! Thanks for the catch great issue documentation here!
Mind giving 5.0.11
a try and see if the issue is resolved? I intend to bundle/consolidate the types in a future release, but in the meantime, I did notice that ./types
was being specifically excluded from the bundler, which would in turn, remove it from the package.json export list (likely causing your issue).
Hoping this small change resolves things until I can dive back into the build system later!
Thanks @kwhitley, compilation IS ok now on cloudflare worker 👍
Glad to hear it, thanks for confirming!!
Hello,
First a great thanks for itty-router. It's really simple and pleasant to use.
I am trying to migrate an app from itty-router 4.0 to itty 5.0 and facing a typescript compilation error With a minimal _worker.ts
I get the following errors
I tried to fix it modifying the 6 mentionned *.d.ts files as below
before
after
I works as expected but I should not have to do this kind of hackish thing. Is there something wrong ?
I 've made a full minimal reproduction case here : https://github.com/b3b00/minimal-cloudflare-itty-router-5
thanks for your work,
Olivier