Skip to content

Adding @livewire('wire-elements-modal') spits console errors #459

Description

@GabiArzu
app.js:7 Alpine Expression Error: Cannot read properties of undefined (reading 'get')

Expression: "function(){var t=this;this.modalWidth=this.getActiveComponentModalAttribute("maxWidthClass"),this.listeners.push(Livewire.on("closeModal",(function(e){var o,n,i;t.closeModal(null!==(o=null==e?void 0:e.force)&&void 0!==o&&o,null!==(n=null==e?void 0:e.skipPreviousModals)&&void 0!==n?n:0,null!==(i=null==e?void 0:e.destroySkipped)&&void 0!==i&&i)}))),this.listeners.push(Livewire.on("activeModalComponentChanged",(function(e){var o=e.id;t.setActiveModalComponent(o)})))}"

 
alpinejs.js?v=275fabca:518 Uncaught 
TypeError: Cannot read properties of undefined (reading 'get')
    at Proxy.getActiveComponentModalAttribute (temp:2447:1045)
    at Proxy.init (temp:2447:4037)
    at alpinejs.js?v=275fabca:551:23
    at tryCatch (alpinejs.js?v=275fabca:507:12)
    at evaluate (alpinejs.js?v=275fabca:531:32)
    at Function.<anonymous> (alpinejs.js?v=275fabca:2853:27)
    at flushHandlers (alpinejs.js?v=275fabca:674:46)
    at stopDeferring (alpinejs.js?v=275fabca:679:5)
    at deferHandlingDirectives (alpinejs.js?v=275fabca:682:3)
    at initTree (alpinejs.js?v=275fabca:176:3)

site with laravel 10 and livewire 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions