The main and types field where pointing to non-existing files in dist/src/index.tsx. These files are instead generated at the root level. Some bundlers require this to be a correct path to avoid any assumptions around the entrypoint for a lib.
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] New and existing unit tests pass locally with my changes
Description
The main and types field where pointing to non-existing files in dist/src/index.tsx. These files are instead generated at the root level. Some bundlers require this to be a correct path to avoid any assumptions around the entrypoint for a lib.
Type of change
Please delete options that are not relevant.
Checklist: