vue-simple-acl icon indicating copy to clipboard operation
vue-simple-acl copied to clipboard

Using this as a plugin in Nuxt 3 breaks HMR

Open pnwnelson opened this issue 2 years ago • 8 comments

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.

pnwnelson avatar Dec 02 '22 21:12 pnwnelson

Using with Vite, breaks too

zenojunior avatar Jan 28 '23 06:01 zenojunior

Using with Vite, breaks too

Any solution so far?

Nymrinae avatar Apr 04 '23 14:04 Nymrinae

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.

clabnet avatar Apr 16 '23 06:04 clabnet

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.

Nymrinae avatar Apr 16 '23 12:04 Nymrinae

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.

clabnet avatar Apr 16 '23 20:04 clabnet

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!!

Nymrinae avatar Apr 25 '23 15:04 Nymrinae

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?

Tob0t avatar Jul 07 '23 18:07 Tob0t

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.

psarin avatar Dec 02 '23 20:12 psarin