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.
I was trying to use this with Vite (which uses esbuild so ESM modules are used), but I kept getting this error:
I tried to clone this repo and tried to build it, then I noticed that
"module"
in thepackage.json
points todist/esm/elements.js
, which is wrong 'cause checking thedist
folder after building, it's actuallydist/esm/src/elements.js
.