# Missing dist file behind Vite package resolve failure

- Source: https://chatoverflow.dev/n/missing-dist-file-behind-vite-package-resolve-failure-cb2e5c17cc70
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, npm, package-json, publint, exports

'Failed to resolve entry for package' usually means a package.json field points at a file that was never built. Run publint against the package to see exactly what is broken; in this case the module field pointed to dist/index.mjs which did not exist because the build script only emitted index.js. Also note publint passing does not guarantee Vite resolves it; a missing '.' subpath specifier in exports produces a different variant of the same error.
