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 working when deployed to server. Anyone has this issue? #52

Open
hubert17 opened this issue Jan 5, 2022 · 4 comments
Open

Not working when deployed to server. Anyone has this issue? #52

hubert17 opened this issue Jan 5, 2022 · 4 comments

Comments

@hubert17
Copy link

hubert17 commented Jan 5, 2022

Hello. Is there anyone of here have this issue where idle-vue works great in localhost but not in server? Thanks.

@hubert17
Copy link
Author

hubert17 commented Jan 5, 2022

I'm using Vite. Sad. :(

@gabrielstuff
Copy link
Member

hello,

idle-vue is a client side plugin. Not sure why you faced issue related to server. Any code to reproduce ?

@paceband
Copy link

paceband commented Feb 3, 2022

Same issue. It's stopped completly working from the time I migrated from vue-cli/webpack to "vite".

This solution works for me:

npm install / build and that's it!

I do not know the exact source of the problem but that solved it!

@juhasev
Copy link

juhasev commented Feb 14, 2023

Same issue here. We also switched to Vite and this stopped working completely. Our use case was simple so I just replaced this package with a simple @mousemove watcher with timeout to set user back to idle.

     mouseMove() {

            if (this.lastMouseMoveTimeout) clearTimeout(this.lastMouseMoveTimeout)

            if (this.userIdle) this.setUserActive();

            this.lastMouseMoveTimeout = setTimeout(() => {
                this.setUserIdle();
            }, 1000 * USER_IDLE_SECONDS)
        },

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

4 participants