- Added react-ace and ace-builds to optimizeDeps.include - This forces Vite to properly bundle the CommonJS react-ace module - Resolves 'Element type is invalid' error when opening files The react-ace package uses CommonJS exports, and Vite needs to pre-bundle it to properly handle the default export in ESM context. |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| vite.config.ts | ||