Auto-discovery may not work reliably with vite-plugin-symfony.
Explicit registration ensures dropdown, notifications, and
import-modal controllers are loaded.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The CSS display:flex on .modal-overlay was overriding the HTML hidden
attribute, making the modal always visible.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The @symfony/stimulus-bundle loader generates an empty controllers.js,
so Stimulus controllers from controllers.json (including ux-react) were
never registered. Switching to vite-plugin-symfony/stimulus/helpers
uses the virtual:symfony/controllers module that properly reads
controllers.json. Also wrap react_component() output in a <div> since
it only renders data-attributes, not a full HTML element.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace @vitejs/plugin-react with @vitejs/plugin-react-swc to fix
React Refresh preamble detection error in cross-origin Docker setup
- Register React components manually via window.resolveReactComponent
since ux-react's registerReactControllerComponents uses Webpack's
require.context API which is incompatible with Vite
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>