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

Using this as a plugin in Nuxt 3 breaks HMR #15

Open
pnwnelson opened this issue Dec 2, 2022 · 8 comments
Open

Using this as a plugin in Nuxt 3 breaks HMR #15

pnwnelson opened this issue Dec 2, 2022 · 8 comments

Comments

@pnwnelson
Copy link

pnwnelson commented Dec 2, 2022

Would love to use it in a Nuxt 3 application but can't when the HMR is broken and really slows me down.
There are no errors, but seeing my DOM changes requires a page reload.

@zenojunior
Copy link

Using with Vite, breaks too

@Nymrinae
Copy link

Nymrinae commented Apr 4, 2023

Using with Vite, breaks too

Any solution so far?

@clabnet
Copy link

clabnet commented Apr 16, 2023

Also for me, same issue using Vite Vue3.
HMR is not available when using this as plugin.
Here a repo showcase

I have also created a new npm package @clabnet/vue-simple-acl
with all packages updated to vite 4.x, but the problem is the same, HMR is breaks.

@pnwnelson @zenojunior @Nymrinae Have you notice ? The author @victorybiz seems do not respond a long time ago.

@Nymrinae
Copy link

Have you notice ? The author @victorybiz seems do not respond a long time ago.

Yeah, the fact that it breaks HMR is a huge issue for me, I consider swapping to CASL instead but didn't try yet if it doesn't break it as well, I hope not.

@clabnet
Copy link

clabnet commented Apr 16, 2023

I have fixed my new npm package @clabnet/vue-simple-acl with HMR running fine. I had to completely override the build mode, it was tough but it seems to work. Try it if you can and give me your feedback, please.

@Nymrinae
Copy link

I have fixed my new npm package @clabnet/vue-simple-acl with HMR running fine. I had to completely override the build mode, it was tough but it seems to work. Try it if you can and give me your feedback, please.

Works fine for me, thanks a lot!!

@Tob0t
Copy link

Tob0t commented Jul 7, 2023

Thanks @clabnet for your package, I also switched to your library now due to missing HMR.
Could you maybe also push your changes to github so we know which part of the source code differs from the actual package?

@psarin
Copy link

psarin commented Dec 2, 2023

Same issure here. However, in using @clabnet version, I get an error saying Module not found: Error: Can't resolve './utils' in '/node_modules/@clabnet/vue-simple-acl/dist' because origin is strict.

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

6 participants