gadget/gadget-code/frontend
Rob Colbert dc54ea3dec fix: handle CJS default export interop for react-ace v14 in Vite dev server
react-ace v14 ships CommonJS only ('main': 'lib/index.js'). Vite's dev
server pre-bundling wraps CJS modules as namespace objects where the
default export is nested under .default. This caused 'Element type is
invalid: got object' because import Ace from 'react-ace' resolved to
the module namespace instead of the React component.

Fix: import * as ReactAceModule and extract default with fallback:
  const Ace = ReactAceModule.default || ReactAceModule

Same treatment for ace-builds import. Production build (Rolldown) was
unaffected due to different CJS interop handling.
2026-05-12 21:49:55 -04:00
..
src fix: handle CJS default export interop for react-ace v14 in Vite dev server 2026-05-12 21:49:55 -04:00
index.html created by merging gadget-code and gadget-drone 2026-04-28 09:20:37 -04:00
package.json fix: ACE editor integration crash — React 19 compat, Vite ?url pattern, Error Boundary 2026-05-12 21:36:22 -04:00
postcss.config.js created by merging gadget-code and gadget-drone 2026-04-28 09:20:37 -04:00
tailwind.config.js theme enforced and correctly implemented; e2e tests added for theme 2026-04-28 17:43:05 -04:00
tsconfig.json Define missing socket event types and enforce typed events in frontend build 2026-05-12 10:42:31 -04:00
vite.config.ts Fix react-ace import: add optimizeDeps to Vite config 2026-05-12 20:02:13 -04:00