naviapps / create-nw-react-app

Create NW.js React apps with no build configuration.
MIT License
144 stars 14 forks source link

Using styled components with boilerplate #13

Closed KajBialas closed 6 years ago

KajBialas commented 6 years ago

I added styled-components via yarn add styled-components. All is working correctly, the element is created with unique class name: presentationstyle__ExampleContainer-imyrbt dXAAYc, but styles from file example.style.js aren't included. File with style is imported correctly.

The specific configuration is needed in this boilerplate?

naviapis commented 6 years ago

Cause was found. Please wait for updates for a while.

naviapis commented 6 years ago

Fixed it. Please update nw-react-scripts library,

yarn upgrade nw-react-scripts@1.0.10

Thanks for the report.

KajBialas commented 6 years ago

Thanks, at this moment all is working correctly.

One case: If I had a project build with the old version of boilerplate, run yarn upgrade nw-react-scripts@1.0.10 it's not enough. After building a new project with a current version of boilerplate works fine.