danalloway / react-country-flag

React component for emoji/svg country flags.
https://danalloway.github.io/react-country-flag/
MIT License
255 stars 43 forks source link

bumping version to react-country-flag 3.00 causes error #48

Closed CourtHive closed 2 years ago

CourtHive commented 2 years ago

Dan,

git clone git@github.com:CourtHive/tods-score-grid.git

yarn install
yarn storybook

All is well

Edit package.json and bump the version of react-country-flag

yarn install 
yarn storybook

"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."

Originally posted by @CourtHive in https://github.com/danalloway/react-country-flag/issues/47#issuecomment-974763054

danalloway commented 2 years ago

fixed in v3.0.2, added a default export back in