Open StefanJelner opened 4 years ago
Can you please share the code how you are using it, for example how your routes looks like?
These errors are build errors, which are related to wrong or incomplete type declarations in your code, which have nothing to do with the way my routes look like. Please check the diff i made.
I do not have any type errors in my codebase and I am not sure you solution is correct. Could you please share a minimal working example that I can reproduce the issue?
Maybe something wrong with tsconfig
🤷♂️
It worked until i updated your library. So it must have to do with changes you made in your library. It is easy to reproduce. Use Typescript 3.8.3 and import your library. Actually the errors should come up. Already in your IDE if you use VSC.
I just created a playground repo: https://github.com/frenzzy/universal-router-playground There are no type errors, could you please tell me what I should change to reproduce the issue?
@StefanJelner any clue?
@frenzzy reproduced example: https://github.com/frenzzy/universal-router-playground/pull/1
(Apologies for the additional noise in the PR, it was cut and paste from a larger project).
The issue only presents itself after the generateUrls
import is added...
@frenzzy hi, I have the same problem with typescript 4.2.4 and I can confirm that bug appears after generateUrls
import is added. Do you have any idea how to fix it?
@frenzzy i'm experiencing the same problem with typescript 4.4.4, when importing generateUrls
- any news?
@Lispython @GordonSmith @StefanJelner where you able to fix it in your project?
Description: When compiling Universal Router with Typescript 3.8.3 i get the following type checking errors:
Solution: I already fixed it and attached a git diff to this bug report. UniversalRouter.ts.txt