**Edit: ** The problem has been fixed, I think.
Hello! I'm migrating a Next.js application to Remix and writing it from scratch in the process. I thought I'd build a quick component library, so we could stop copypasting those around. We have several "apps" in the same brand but no reusability, trying to change that.
As the title states, I managed to get some basic components running in my very standard remix boilerplate, when I just added them in after the page had rendered. However, refreshing the page causes Remix to error out:
Application 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.
at renderElement (/home/md/Projects/remix/project/node_modules/react-dom/cjs/react-dom-server.node.development.js:6109:9)
at renderNodeDestructiveImpl (/home/md/Projects/remix/project/node_modules/react-dom/cjs/react-dom-server.node.development.js:6170:11)
at renderNodeDestructive (/home/md/Projects/remix/project/node_modules/react-dom/cjs/react-dom-server.node.development.js:6142:14)
....
I have tried to solve this problem with the help of ChatGPT and now I want to quit, lmao.
I think I've packaged everything correctly...
Here's the repo. It's pretty much "hello world" at this point, but the dev setup works, trying to consume the library... not so much.
https://github.com/MagnumDuck/clib/
Literally rendering text nodes at this point but server rendering them is killing me...