The aspect-ratio plugin does not work with shim (NuxtJs) #119
sondh0127
started this conversation in
Show and tell
Replies: 3 comments 2 replies
-
Do you have a repo/codesandbox you can share where we can see your whole setup? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Confirmed. Working on a fix. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I found the issue and have published bugfix release:
See the update sandbox: https://codesandbox.io/s/cold-sound-cojst?file=/package.json:221-365 @sondh0127 Thanks for the report. That was a big issue and great you found it. 🙏🏾 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try the shim setup with Nuxtjs. But there's a problem with the aspect-ratio plugin.
https://github.com/sondh0127/nuxt21-twind-plugin/blob/f1f99e7a953320129b635f58219fb2f7043db648/pages/index.vue#L26
It works on the first load, but when I change something (e.g. adding another class), the app stops working. I have to close the tab and open another. => It looks like we've got an infinite loop here.
If ‘aspect-ratio’ is included in plugins, the error will occur.
Link to produce repo:
https://github.com/sondh0127/nuxt21-twind-plugin
Here is my config
Beta Was this translation helpful? Give feedback.
All reactions