Skip to content

Not working modals after click button #496

Closed

Description

@LukasCCB

Laravel Version .................................................................................................................... 11.41.3
PHP Version ......................................................................................................................... 8.3.16
Composer Version ................................................................................................................ 2.7.7

Livewire 3, no AlpineJS!!!

app.blade.php (layout)

header
@Vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles

body
@livewire('wire-elements-modal')
@livewireScripts

Error after click button openModal.
home:33 Uncaught ReferenceError: Livewire is not defined
at HTMLButtonElement.onclick (home:33:90)

npm run dev already running.
php artisan optimize:clear already executed.

Activity

  1. locked and limited conversation to collaborators on Feb 7, 2025
  2. converted this issue into a discussion #497 on Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions