Closed oonicks closed 3 years ago
Can you share a minimal reproduction? Thanks.
Sorry for the late response and thanks for your help. Just get back to the projects and tried few things that came to my mind over the weekend. Now I found the cause. It's the "shim.d.ts" file. If I delete this file from project, the main.ts imports the right module, if the file is in the project included it imports it from the "shim.d.ts" file. So, what will be here the best workaround or solution? Thanks
One thing to add what I noticed. If I've an import at the top in "shim.d.ts", the error doesn't occur.
Ah, that's because TS treats .d.ts
with or w/o import differently. If you don't want to have import
, adding export {}
at the end should also do the trick.
Great. Thank you for hint!
Till yesterday everything works like expected but now this error occured. I checked versions, different imports but nothing worked. Need help here, thanks.