Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not resolve entry module (dist/esm/types/index.d.ts) #2

Open
vgarmes opened this issue Dec 28, 2021 · 8 comments
Open

Comments

@vgarmes
Copy link

vgarmes commented Dec 28, 2021

Issue is fixed when adding "rootDir": "src" in tsconfig.json file.

@lwazevedo
Copy link

lwazevedo commented Feb 22, 2022

@vgarmes -

I included rootDir in tsconfig, but doesn't solve the warning that occurs in another project that uses lib.

Did you make any other changes?

@vgarmes
Copy link
Author

vgarmes commented Mar 1, 2022

@lwazevedo I can't remember now, but feel free to check the repo I started back then: https://github.com/vgarmes/ui-library

@0xcuonghx
Copy link

Change dist/esm/types/index.d.ts -> dist/esm/index.d.ts in rollup.config.js

@hane-smitter
Copy link

hane-smitter commented Sep 17, 2022

@AbhinavRobinson
Copy link

Adding "declarationMap": true in tsconfig.json solved this issue for me.

@zahidshowrav
Copy link

zahidshowrav commented Jun 19, 2023

In my case, simply adding "rootDir": "src" in tsconfig.json has solved the issue.

@Prathyush-KKK
Copy link

in rollup.config.mjs, change plugins: [dts()] to plugins: [dts.default()]

@lacymorrow
Copy link

Renaming my file from file.d.ts to file.ts worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants