have a problem with this error Uncaught (in promise) {} in laravel php handling livewire with nested components

what I want is to show a modal alert mode when the patient has allergies and I am handling events
the error that I get

Mi modal

<div>
    <div class="modal fade" wire:ignore.self id="allergieAlertModal" tabindex="-1" aria-labelledby="md-add-fileLabel"
        aria-hidden="true">
        <div class="modal-dialog modal-xl">
            <div class="modal-content">
                <div class="modal-header">
                    <h1 class="modal-title fs-5" id="md-add-fileLabel">{{ __('Allergies') }}</h1>
                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                </div>
                <div class="modal-body">

                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary"
                        data-bs-dismiss="modal">{{ __('Close') }}</button>
                </div>
            </div>
        </div>
    </div>
</div>
@push('scripts')
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            window.addEventListener('openAllergieAlertModal', function() {
                try {
                    var allergieAlertModal = new bootstrap.Modal(document.getElementById(
                        'allergieAlertModal'), {
                        keyboard: false
                    });
                    allergieAlertModal.show();
                } catch (error) {
                    console.error('Error opening allergieAlertModal:', error);
                }
            });
        });
    </script>
@endpush

the class my modal

<?php

namespace AppHttpLivewireMedicalsClinicalHistoriesComponents;

use LivewireComponent;

class AllergiesAlertModal extends Component
{
    protected $listeners = ['medicals.clinical-histories.components.alert' => 'openAllergiesAlert'];

    public function openAllergiesAlert()
    {
/*aqui mando un evento al frontend y lo escucho en mi modal*/
        $this->dispatchBrowserEvent('openAllergieAlertModal');
    }

    public function render()
    {
        return view('livewire.medicals.clinical-histories.components.allergies-alert-modal');
    }
}

I am working with Laravel and Livewire using nested components.

public function mount($patientId)
    {
        $this->updateView = false;

        $this->patient = Client::query()
            ->with('patientData')
            ->find($patientId);

        if (!$this->patient) {
            redirect()->route('medicals.patients.index');
        }

        if ($this->patient->patientData->allergies) {
            $this->emit('medicals.clinical-histories.components.alert');
        }
    }

    public function render()
    {
        return view('livewire.medicals.clinical-histories.master');
    }
}

The master class is the parent component that contains my modal

<div>
    @livewire('shared.toolbar', [
        'title' => __('Patients'),
        'tags' => config('components.toolbar.medicals.patients.personalHistories.list.tags'),
    ])

    <div class="row mt-2">
        <div class="col-12">
            <div class="card" style="border-radius:15px">
                <div class="card-body">
                    @livewire('medicals.clinical-histories.components.patient-data', ['patient' => $patient])
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-12">
            <div class="card h-15" style="border-radius:15px">
                <div class="card-body">
                    <div class="row">
                        <div class="col-12 col-md-12 col-xl-4">
                            @livewire('medicals.clinical-histories.components.vital-signs', ['patient' => $patient, 'historyId' => $historyId])
                        </div>
                        <div class="col-12 col-md-12 col-xl-4">
                            @livewire('medicals.clinical-histories.components.personal-history', ['patient' => $patient])
                        </div>
                        <div class="col-12 col-md-12 col-xl-4">
                            @livewire('medicals.clinical-histories.components.allergies', ['patient' => $patient])
                        </div>
                    </div>
                </div>
            </div>
            <div class="row mt-3">
                <div class="col-12 col-md-12 col-lg-6 col-xl-6 mb-2">
                    @if ($updateView)
                        @livewire('medicals.clinical-histories.components.evolution-notes-edit', ['patient' => $patient])
                    @else
                        @livewire('medicals.clinical-histories.components.evolution-notes', ['patient' => $patient])
                    @endif
                </div>
                <div class="col-12 col-md-12 col-lg-6 col-xl-6 mb-2">
                    @livewire('medicals.clinical-histories.components.clinical-histories', ['patient' => $patient])
                </div>
            </div>
        </div>
        @livewire('medicals.clinical-histories.prescriptions.components.prescription-modal', ['patient' => $patient])
    </div>
    @livewire('medicals.clinical-histories.components.cie10-modal')
    @livewire('medicals.clinical-histories.components.allergies-alert-modal')
</div>

the error I want to solve
use a dd (in case you get into the allergy condition);

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật