Import warnings #1708
-
Hi guys, I constantly got warnings like this |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi, what stack are you using in your app? The |
Beta Was this translation helpful? Give feedback.
-
Same thing! I started my Next 13 project and soon added tw-elements, I followed the steps described in the documentation and even so I received these import warnings, even repeating exactly what was there. In my case, I followed the whole integration example with Next step by step and it warned all components (InitTE, Datepicker and Input) the same way. I tried using tw-elements-react but nothing was different |
Beta Was this translation helpful? Give feedback.
-
Yes, I've seen those import errors. The components were still working for me. Is this the same case for you? We will try to look into that and see why it's happening. |
Beta Was this translation helpful? Give feedback.
-
Have the same issues with Next 13.4.9 |
Beta Was this translation helpful? Give feedback.
-
I do not see those issues anymore when creating a new app with of the latest nuxt template: I've loaded older next project and the error messages about importing from
Please give it a try and let me know whether it helped or not. Best Regards! |
Beta Was this translation helpful? Give feedback.
I do not see those issues anymore when creating a new app with of the latest nuxt template:
I've loaded older next project and the error messages about importing from
tw-elements
anddocument not defined
were still there. What worked for me was changing the imports to dynamic imports inside theuseEffect
method.Please give it a try and let me know whether it helped or not.
Best Regards!