Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative is not converted to code when exported #83

Open
ecircenis opened this issue Aug 20, 2020 · 0 comments
Open

Alternative is not converted to code when exported #83

ecircenis opened this issue Aug 20, 2020 · 0 comments

Comments

@ecircenis
Copy link

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'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant