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

fix: package.json module path #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix: package.json module path #50

wants to merge 1 commit into from

Conversation

esfox
Copy link

@esfox esfox commented Feb 17, 2024

I was trying to use this with Vite (which uses esbuild so ESM modules are used), but I kept getting this error:

Error: Failed to resolve entry for package "typed-html". The package may have incorrect main/module/exports specified in its package.json.

I tried to clone this repo and tried to build it, then I noticed that "module" in the package.json points to dist/esm/elements.js, which is wrong 'cause checking the dist folder after building, it's actually dist/esm/src/elements.js.

@PCreations
Copy link

I need this too :)

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

Successfully merging this pull request may close these issues.

2 participants