preactjs / preact-router

:earth_americas: URL router for Preact.
http://npm.im/preact-router
MIT License
1.01k stars 156 forks source link

TypeScript error "Could not find a declaration file for module preact-router" #443

Closed bjorn-ali-goransson closed 1 year ago

bjorn-ali-goransson commented 1 year ago

Do you know how to get rid of this error? 🤔

image

My source code is here .. https://github.com/cloudy-net/Cloudy.CMS/tree/master/Cloudy.CMS.UI/wwwroot-src

jhirvioja commented 1 year ago

Opened a PR for this to get the ball rolling: https://github.com/preactjs/preact-router/pull/444

rschristian commented 1 year ago

In the meantime, you can use an older (and more stable) moduleResolution value in your tsconfig.json.