ux: [LiveComponent] `data-model` started throwing the "Invalid model name" error after upgrading to 2.15

Hi, considering the following code: image image

When we bump the LC to 2.15.0 the frontend starts throwing live_controller.js:1885 Uncaught Error: Invalid model name "selectedAttributeCodes"..

The JS code suggest the model name is not present in the valueStore. image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

The documentation is really big today, so it’s not always easy to emphasis things or illustrate.

We are thinking about splitting it in multiple pages (per “feature”) and @WebMamba started to work on a cookbook that will present things on a more “macro” level…

Many things to do but i have good hope we can release some cool things before the end of summer!

This part is a bit confusing since when you install symfony --webapp it comes but then needs to be removed for the ux-live installation.

This can be confusing i agree. But AssetMapper does not need to be removed for the ux-live installation… it does need to be removed if you install Webpack encore.

The ux.symfony.com website uses all UX packages on AssetMapper (one could say it is even the simpliest way to use them now)

Would be much nicer that it comes some PHP error or something but I guess that’s not possible for some reason

We cannot control in PHP what is written into the data-model … so sadly i don’t see how we can improve things there… But if you have any idea i’d be more than happy to improve things 😃