nicojs / typed-html

TypeSafe HTML templates using TypeScript. No need to learn a template library.
333 stars 51 forks source link

fix: package.json module path #50

Open esfox opened 6 months ago

esfox commented 6 months ago

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.