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

window -> global breaks normal behavior #15

Open
Sloth-Wizard opened this issue Mar 8, 2022 · 0 comments
Open

window -> global breaks normal behavior #15

Sloth-Wizard opened this issue Mar 8, 2022 · 0 comments

Comments

@Sloth-Wizard
Copy link

Sloth-Wizard commented Mar 8, 2022

Issue

Upgrading to latest version of fizzy-ui-utils breaks normal behavior when bundling with parcel's latest version (2.3.2).

When building in production mode
Uncaught TypeError: e is undefined

When building in dev mode
No error but slider behaviour is wrong (see image)
image

As you can see dots disapeared and all slides appart from the 1st one is invisible with flickity-fade

Reproduction

npm i flickity@3.0.0
npm i flickity-as-nav-for@3.0.0
npm i flickity-fade@2.0.0
npm i --save-dev parcel@2.3.2

Then init a flickity basic slider with the fade like this

let flkty = new Flickity(cells_container, {
    lazyLoad: 3,
    wrapAround: true,
    fade : true,
    adaptiveHeight: true,
    initialIndex: -1,
    prevNextButtons: false,
    autoPlay: true
});

p.s: I have fixed the Uncaught TypeError: e is undefined when building in production by changing the this to global in fizzy-ui-utils code.

Downgrading to flickity-fade@1.0.0 fixes the issues but then you need 2 fizzy-ui-utils versions

Thanks.

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

No branches or pull requests

1 participant