Problems with twrnc plugin with tailwind extension #123
Replies: 4 comments
-
I've seen the tailwind intellisense error as well. I think it has to do with the fact that react-native (which As far as your intellisense not working, there's an open issue with people sharing their configurations, have you checked it out? #78 |
Beta Was this translation helpful? Give feedback.
-
@jaredh159 the errors are related. When the plugin crashes the intellisense stops working. As the |
Beta Was this translation helpful? Give feedback.
-
I'm not sure exactly the source of the problem to be honest. I don't experience the problem of intellisense not working in my apps, and I think I'm using the same vscode extension, because I see that error sometimes. I always just ignore it, and I don't seem to lose intellisense. but I also would say that I don't heavily rely on intellisense, so if it did stop working, I'm not 100% sure I would always notice. About the actual error and commonJS/ESM, I'm sort of guessing there as well, I can't give you a super solid answer. I'm pretty sure that the whole If you're open to digging in and troubleshooting, and looking for the root cause (either in this library, or in the vscode extension), that would be fantastic, I'm sure other's would appreciate it as well. Maybe someone from that repo could chime in and help out. |
Beta Was this translation helpful? Give feedback.
-
same issue here, just write : const { plugin } = require('twrnc')` will cause tailwind intelisense not working. const plugin = require('tailwindcss/plugin') there's no problem then. |
Beta Was this translation helpful? Give feedback.
-
Hello! I've find two errors when importing the twrnc plugin in
tailwind.config.js
:The first error is that the Tailwind extension throws an error:
The second error is that the tailwind intelisense stop working. I'm using the config above for VSCode:
Beta Was this translation helpful? Give feedback.
All reactions