Skip to content

fix: package.json module path#50

Open
esfox wants to merge 1 commit intonicojs:masterfrom
esfox:master
Open

fix: package.json module path#50
esfox wants to merge 1 commit intonicojs:masterfrom
esfox:master

Conversation

@esfox
Copy link
Copy Markdown

@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
Copy Markdown

I need this too :)

@arthurfiorette arthurfiorette mentioned this pull request Jan 16, 2026
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