DimiMikadze / create-react-library

React NPM library starter kit based on Facebook's create react app
MIT License
602 stars 60 forks source link

Getting Error From Published Package #56

Closed bvmcode closed 5 years ago

bvmcode commented 5 years ago

https://github.com/bvmcode/react-list-items

Thanks for your repo. I followed it from start to end. I installed my published package to test it in a project and in the very simple test I get an 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 App.

When I remove my component from this test project I get no error so it for stemming from the published package. Any insight on this would be appreciated. thanks

bvmcode commented 5 years ago

nevermind, my index.js was the problem

grubersjoe commented 4 years ago

Do you still remember what the issue was? I'm having the same problem right now and can't find the solution. I do export a regular React component.