Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Select: requires Popper #19

Open
foxkyo opened this issue Nov 13, 2023 · 1 comment
Open

Simple Select: requires Popper #19

foxkyo opened this issue Nov 13, 2023 · 1 comment

Comments

@foxkyo
Copy link

foxkyo commented Nov 13, 2023

fresh install from laravel 10

then install livewire 3
and [laravel-simple-select] with JavaScript Dependencies

the console.log shows

Uncaught TypeError: Laravel Simple Select: requires Popper (https://popper.js.org)
    at Proxy.popper ((index):1174:25)
    at (index):1052:32

my app.js code

import "./bootstrap";
import Alpine from 'alpinejs'
import { createPopper } from "@popperjs/core";

window.Alpine = Alpine;
Alpine.start()

window.**_createPopper_** = createPopper;

vscode shows
Property 'createPopper' does not exist on type 'Window & typeof globalThis'

excuse me
how to solve it
thanks.

@NikarashiHatsu
Copy link

window.createPopper = createPopper, your code having the **_createPopper_**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants