Giter Site home page Giter Site logo

Comments (9)

frenzzy avatar frenzzy commented on June 12, 2024

Can you please share the code how you are using it, for example how your routes looks like?

from universal-router.

StefanJelner avatar StefanJelner commented on June 12, 2024

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.

from universal-router.

frenzzy avatar frenzzy commented on June 12, 2024

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 🤷‍♂️

from universal-router.

StefanJelner avatar StefanJelner commented on June 12, 2024

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.

from universal-router.

frenzzy avatar frenzzy commented on June 12, 2024

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?

from universal-router.

frenzzy avatar frenzzy commented on June 12, 2024

@StefanJelner any clue?

from universal-router.

GordonSmith avatar GordonSmith commented on June 12, 2024

@frenzzy reproduced example: frenzzy/universal-router-playground#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...

from universal-router.

Lispython avatar Lispython commented on June 12, 2024

@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?

from universal-router.

mbeckert avatar mbeckert commented on June 12, 2024

@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?

from universal-router.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.