I've created a small react component, and uploaded it to a private npm. I try to implement it in my create-react app. When I use it localy (npm link), all works preferct But when I try to use to server version (npm install), I get the following 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.
Any ideas why?
Thanks