grommet / grommet-designer

Apache License 2.0
36 stars 18 forks source link

Alternative is not converted to code when exported #83

Open ecircenis opened 4 years ago

ecircenis commented 4 years ago

Convert Alternative to code when exported, likely via a useState()?

Context: I am trying to use an existing Grommet (attached) project and use it as a starting point to develop locally.

I started with a grommet designer design that used Alternative.

I followed the instructions: • install nodejs, npm, yarn, and create-react-app (if needed) • # npx create-react-app my-app • # cd my-app • # yarn add styled-components https://github.com/grommet/grommet/tarball/stablehttps://github.com/grommet/grommet-icons/tarball/stable https://github.com/grommet/grommet-theme-hpe/tarball/NEXT-stable • replace the contents of src/App.js with the text below • # yarn start I get the following error in React: ./src/App.js Attempted import error: 'Alternative' is not exported from 'grommet'.