Live Components not working at all #2500
Replies: 1 comment
-
Turned out i seem to have to have Hotwire installed, which i hadn't. Not its working. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i'm trying out Live Components for the first time. However there is no interactivity at all and there are no error messages whatsoever.
I'm using the latest Symfony 7 version and i created the RandomNumber component from the documentation. The random number gets displayed, but the button to generate a new number is not working at all.
IThese files got created by Symfony automatically:
bootstrap.js
`import { startStimulusApp } from '@symfony/stimulus-bundle';
const app = startStimulusApp();
// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);
`
controllers.json
{ "controllers": { "@symfony/ux-live-component": { "live": { "enabled": true, "fetch": "eager", "autoimport": { "@symfony/ux-live-component/dist/live.min.css": true } } } }, "entrypoints": [] }
What can i do to make it work?
Beta Was this translation helpful? Give feedback.
All reactions