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

Vue 3 + vite warnings #770

Open
preetamslot opened this issue Dec 28, 2022 · 3 comments
Open

Vue 3 + vite warnings #770

preetamslot opened this issue Dec 28, 2022 · 3 comments
Assignees
Labels
🔖4.x v4.x~ related issue 📦Vue3 @egjs/vue3-flicking related issue

Comments

@preetamslot
Copy link

I use Quasar and in Webpack all worked fine, but with Vite the carousel won't start.
it gives me these warnings in the console:

Flicking.ts:160 
[Vue warn]: Property "vanillaFlicking" was accessed during render but is not defined on instance. 
  at <Flicking plugins= [Arrow2] ref="carousel" options= {align: 'prev', circular: false, bound: true, useResizeObserver: true, resizeDebounce: 100, …}  ... >  
Flicking.ts:186 
[Vue warn]: Property "getPanels" was accessed during render but is not defined on instance. 
  at <Flicking plugins= [Arrow2] ref="carousel" options= {align: 'prev', circular: false, bound: true, useResizeObserver: true, resizeDebounce: 100, …}align: "prev"bound: truecircular: falserenderOnlyVisible: trueresizeDebounce: 100useResizeObserver: true[[Prototype]]: Object  ... > 

If I console log the carousel ref:

{
    "viewportTag": "div",
    "cameraTag": "div",
    "cameraClass": "",
    "hideBeforeInit": false,
    "options": {
        "align": "prev",
        "circular": false,
        "bound": true,
        "useResizeObserver": true,
        "resizeDebounce": 100,
        "renderOnlyVisible": true
    },
    "plugins": [
        {
            "_flicking": null,
            "_parentEl": null,
            "_prevElSelector": ".flicking-arrow-prev",
            "_nextElSelector": ".flicking-arrow-next",
            "_disabledClass": "flicking-arrow-disabled",
            "_moveCount": 1,
            "_moveByViewportSize": false
        }
    ]
}

Any pointer on how to get this working?
Thanks

@malangfox malangfox self-assigned this Dec 28, 2022
@malangfox malangfox added 🔖4.x v4.x~ related issue 📦Vue3 @egjs/vue3-flicking related issue labels Dec 28, 2022
@malangfox
Copy link
Contributor

malangfox commented Jan 2, 2023

Hello @preetamslot.

This seems to be an issue that needs to be fixed in our components.
Can we check if there is a repo that reproduces this issue with the environment?

After we release the patch that fixes this issue, we will give you additional comments.

@preetamslot
Copy link
Author

@malangfox, for this project I switched to the js version and created a simple Vue component.

@malangfox
Copy link
Contributor

malangfox commented Jan 17, 2023

@preetamslot

Can we check the version of the packages you are using as we further investigate the circumstances of this issue?
When we tried to reproduce this error, the issue you left was not reproduced when using 3.2.45 version of Vue and 4.0.0 version of Vite.

We would like to check the version of the package displaying this warning, or a demo repository that can reproduce this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔖4.x v4.x~ related issue 📦Vue3 @egjs/vue3-flicking related issue
Projects
None yet
Development

No branches or pull requests

2 participants