component-template icon indicating copy to clipboard operation
component-template copied to clipboard

npm start results in fatal errors

Open gpolyn opened this issue 7 years ago • 2 comments

Using node 6.11.0, getting the following after npm start

Warning: React.createElement: 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. Check your code at index.js:24.
    in Docs (at index.js:6)

gpolyn avatar Jun 28 '17 14:06 gpolyn

hey, I had the same issue, found out it was the version of react-router causing this.

so I installed react-router-dom instead, note that you need to then change instances of Match to Route

there actually is a pull request to fix this - see here what needs changing https://github.com/reactstrap/component-template/pull/9

vitozgonik avatar Nov 03 '17 12:11 vitozgonik

You can try this fork until the fix gets merged.

https://github.com/susielu/component-template

cvramirez avatar Jan 12 '18 07:01 cvramirez