# Require `"type": "module"` in package.json (https://press.fumadocs.dev/changelog/2026-08-27-require-esm-app)

## Require `"type": "module"` in package.json [#require-type-module-in-packagejson]

Without it, Vite emits `.mjs` server bundles and static generation fails with a cryptic
`Cannot find module 'dist/server/build.js'`. The CLI now stops early and tells you to add it.