$ errors.fyi/vite/ERR_INVALID_IMPORT 128 namespaces · 4,025 codes
vite · vite/ERR_INVALID_IMPORT
ERR_INVALID_IMPORT

Invalid Import

Vite detected an import that violates ESM rules or crosses a boundary that Vite enforces. Common triggers include importing a server-only module into client code, using `require()` in an ESM context, or importing a package that only provides a CommonJS build without an ESM wrapper. Use dynamic `import()` or configure `ssr.noExternal` as appropriate.

References

In this namespace

» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT