I know this is unlikely a problem with the library, but I am trying to undertand why it's happening.
I see that the declarations file are present in the package and my project build, but I can't manage to have the typings to work in VSCode.
I am investingating and I'll share findings. I'll share soon a project to reproduce this.
Is anyone else experiencing this?
Findings
if I add ".node_modules/react-daisyui/dist/index.d.ts" to the files array in tsconfig.json then it starts working
if I also reference the type folder using ./Input/index.js that also solves the issue. It must be something about the fact that I am using ESM in my project
I know this is unlikely a problem with the library, but I am trying to undertand why it's happening.
I see that the declarations file are present in the package and my project build, but I can't manage to have the typings to work in VSCode.
I am investingating and I'll share findings. I'll share soon a project to reproduce this. Is anyone else experiencing this?
Findings
".node_modules/react-daisyui/dist/index.d.ts"
to the files array in tsconfig.json then it starts working./Input/index.js
that also solves the issue. It must be something about the fact that I am using ESM in my projectHow this problem looks like