Closed sumanthratna closed 3 years ago
that was really silly. You need to import @heroicons/react/(outline|solid)
as mentioned in the README
I'm leaving this issue open because I think it would be nice to raise a more informative error when someone tries to import the root package
Hey! Doing a little house cleaning so going to close this since there’s no actual bug here, but appreciate the feedback and will definitely consider an error here 👍🏻
The Error
Reproduction
cd /tmp; mkdir test-heroicons-yarn2 && cd test-heroicons-yarn2
yarn init
- accept the default on all promptsyarn set version berry && yarn set version latest
yarn add @heroicons/react
yarn node -e "require('@heroicons/react')"
- you'll see the error aboveEnvironment
@heroicons/react
1.0.0