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

Not Loading in Laravel11 Livewire3 project (lightbox2) #752

Open
Creekmore108 opened this issue Apr 26, 2024 · 1 comment
Open

Not Loading in Laravel11 Livewire3 project (lightbox2) #752

Creekmore108 opened this issue Apr 26, 2024 · 1 comment

Comments

@Creekmore108
Copy link

Not working in Laravel11 Livewire3 project
What version of Lightbox2 you are using?
version 2

Which browsers and operating systems have you seen the issue on?
Chrome Version 124.0.6367.62 (Official Build) (x86_64) on a Mac

What are the steps to reproduce the bug?
Setup in a Laravel11 Livewire3 project and getting image with black background.
I tried with two different test sites generated to try and resolve this issue.

Do you have link to a live site where the bug is visible? or can you post relevant HTML, CSS, and Javascript?
js/app.js
import './bootstrap';
import jQuery from './jquery';

window.$ = jQuery;
window.jQuery = jQuery;

import './lightbox';

cs/app.css
@import './lightbox.css';

===============================
blade file

I tried using just the CDN files as well.

@truckee
Copy link

truckee commented Jun 3, 2024

I'm experiencing the same problem as above. My configuration is identical working in Symfony. Lighgtbox2 is imported in that it appears in a page's HTML: "lightbox2": "/assets/vendor/lightbox2/lightbox2.index-3d584173438145230243225cbabb180a.js" but that's all.

Attempts to add an option with:

<script>
    lightbox.option({
      'resizeDuration': 200,
      'wrapAround': true
    })
</script>

yields lightbox not defined

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