Hi, I'm using your loader in my project and I'm using JSS for styling. Everything works fine until I try to add styling to my component. For example, I have a Button component. If I try to inject styles with injectSheet(styles)(Button), the compiler fails with this message:
I guess the loader is somehow interfering with HOC from react-jss. I can live with this workaround but would be nice to solve it directly in the library. Can you look at it?
Hi, I'm using your loader in my project and I'm using JSS for styling. Everything works fine until I try to add styling to my component. For example, I have a
Button
component. If I try to inject styles withinjectSheet(styles)(Button)
, the compiler fails with this message:My styles are generated as:
If I add
__docgenInfo: {},
into the styles, everything works fine.I guess the loader is somehow interfering with HOC from
react-jss
. I can live with this workaround but would be nice to solve it directly in the library. Can you look at it?"react": "^16.6.0"
"react-jss": "^8.6.1"
"@storybook/react": "^4.0.2"
"react-docgen-typescript-loader": "^3.0.0"
"typescript": "^3.1.6"
"webpack": "^4.25.1"