Closed miloxeon closed 5 years ago
We should definitely update the grommet-cli. sorry it is not in sync with the latest grommet bits.
I will update it later today.
FYI we are officially deprecating grommet-cli in favor of create react app. We will be soon offering tutorials on how to get started with v2 using that flow.
@alansouzati wow, really? That's amazing! I just can't get started with create-react-app with Grommet added. I tried adding it manually just that way, but it appears to be unstyled somehow.
Text is in Work Sans though, but everything else is unstyled.
Can you please help me with that? I'm starting a new shiny project and I want it to have the both latest create-react-app and Grommet.
Or if you can't because of some reason, can I use grommet-react-app in production yet?
It seems that you are using Grommet v1 in a v2 platform. make sure your package.json is using 2.0.0-rc
, the latest official version is still v1.
grommet-react-app
is an ejected create-react-app for Grommet v1. I would not recommend starting with v1 at this point.
v2.0.0-rc
is a release candidate, and we are planning to officially release grommet v2 soon.
Okay, I’m not going to use cli anymore. How do I get styles to work in create-react-app v2 and Grommet v2?
it comes built in, you dont have to worry about it.
Yep! It seems like I messed it up somehow yesterday. Now I did all this from scratch and it works perfectly.
Thanks a lot! The issue is solved.
I just created new Grommet app with grommet-cli. Now I'm doing
npm start
and I'm getting this:Countless of errors like these. I just can't get started, again! Page renders tho, but it has no icons, just blank rectangles that change their color on hover.