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

Uncaught TypeError: Cannot read properties of undefined (reading 'create') #13

Closed
billpebert opened this issue Sep 3, 2022 · 1 comment

Comments

@billpebert
Copy link

billpebert commented Sep 3, 2022

hello, please help im keep getting this error
Uncaught TypeError: Cannot read properties of undefined (reading 'create')
image

<script src="https://unpkg.com/flickity-as-nav-for@3/as-nav-for.js"></script> <script src="https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js"></script>

`<script>
$(function() {
$('.__main-preview').removeClass('d-none').flickity({
pageDots: false,
prevNextButtons: false,
draggable: false,
});

        $('.__carousel-preview').removeClass('d-none').flickity({
            asNavFor: '.__main-preview',
            contain: true,
            pageDots: false,
            prevNextButtons: false,
            draggable: '>4',
            cellAlign: 'left',
        });
    })
</script>`

This is the render result
image

@billpebert billpebert changed the title Uncaught TypeError: Cannot set properties of undefined (setting 'asNavFor') Uncaught TypeError: Cannot read properties of undefined (reading 'create') Sep 3, 2022
@billpebert
Copy link
Author

after a while, i don't know how fixed by itself

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