Hey 👋
Some projects struggle to import components from this module because there are the following issues with it:
- It builds ESM into
dist/es, but the file extensions of those files are .js. The package.json does not include "type": "module", so the files are interpreted as CJS. Some bundlers may not have an issue, others that follow the spec more closely (e.g. Vite) will fail to resolve.
- Local/relative imports in the
dist output do not include file extensions which means that Node cannot resolve them.
Hey 👋
Some projects struggle to import components from this module because there are the following issues with it:
dist/es, but the file extensions of those files are.js. Thepackage.jsondoes not include"type": "module", so the files are interpreted as CJS. Some bundlers may not have an issue, others that follow the spec more closely (e.g. Vite) will fail to resolve.distoutput do not include file extensions which means that Node cannot resolve them.