Alpine Expression Error: selectedRecords is not defined #14030
Replies: 3 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
I have a similar issue here. In my case it is a many-to-many relationship between two models. Same version, similar RelationManager code (default code generated by artisan command). I followed the documentation and added a RelationManager with this command:
But, when I access the resource editing screen, the relationship table doesn't work and the console error messages show the same: "Alpine Expression Error: selectedRecords is not defined" and "Uncaught ReferenceError: selectedRecords is not defined". I don't know what could be causing the problem and would appreciate any help. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Same here, but without any relation, and just trying to access the I think this should be converted to an issue. |
Beta Was this translation helpful? Give feedback.
-
Package
Form builder
Package Version
^3.2
How can we help you?
This occurs when trying to load the RelationManager for a specific relationship. The table is supposed to display related records, and I’ve configured it with some custom columns and bulk actions.
Alpine Expression Error: selectedRecords is not defined
I’ve already checked the table configuration, cleared the cache, and updated all dependencies, but the error persists. It seems to be related to how Alpine.js handles the selectedRecords variable.
What could be causing this issue, and how can I resolve it?
Resource
Relation:
Inverse:
Beta Was this translation helpful? Give feedback.
All reactions