Next.js Discord

Discord Forum

How to resolve " Error: Element type is invalid: expected a string"

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Asian black bearOP
Everytime I try using TailwindCss in my App router I get this error:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of `MyComponent`.
- Is anyone else getting this, and how are you resolving/ solved it?

0 Replies