couds / react-bulma-components

React components for Bulma framework
MIT License
1.2k stars 129 forks source link

ImageProps error when compiling typescript project. #400

Closed Dashron closed 2 years ago

Dashron commented 2 years ago

I've got a setup where I'm trying to use this project for server side rendering, just using the react-jsx output of the typescript compiler. When I run tsc I get this error.

error TS2749: 'ImageProps' refers to a value, but is being used as a type here. Did you mean 'typeof ImageProps'?

Image: BulmaComponent<ImageProps, 'figure'>;

I poked around and it looks like this line is incorrect, because the referenced file doesn't expose ImageProps.

I'm happy to throw together a quick PR if you'd like.

Dashron commented 2 years ago

Ignore me, I just saw the discussion in the other issues! I should have taken a little longer to look for them.

kennethnym commented 2 years ago

No worries, glad you found a solution.