You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get this to compile when using react + babel + webpack. I ran the create-react-app starter tool, then npm run eject so I could modify the config.
importReact,{Component}from'react';importlogofrom'./logo.svg';importCSSXfrom'react-cssx';classAppextendsComponent{render(){return(<CSSXstyles={this.css()}><h1>Title styled with <i>CSSX</i></h1></CSSX>);}css(){// var color = '#BADA55';return(<style>
h1 {color: blue;}</style>);}}exportdefaultApp;
I'm trying to get this to compile when using react + babel + webpack. I ran the create-react-app starter tool, then npm run eject so I could modify the config.
Then changing my webpack config like so:
But the compiler fails:
Any ideas I could try?
The text was updated successfully, but these errors were encountered: