Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Importing the CSS file requires the package "tippy.js" in addition to "@tippyjs/react" #391

Open
ellvtr opened this issue Aug 15, 2024 · 2 comments

Comments

@ellvtr
Copy link

ellvtr commented Aug 15, 2024

Importing the CSS file requires the package "tippy.js" in addition to "@tippyjs/react".

This line from your documentation causes a compile error:
import 'tippy.js/dist/tippy.css'; // optional

Solution is to install "tippy.js" in addition to "@tippyjs/react".

If that is on purpose, please include it in the documentation.
If not, what is the proper way to import the styles?

@yansena
Copy link

yansena commented Sep 4, 2024

Importing the CSS file requires the package "tippy.js" in addition to "@tippyjs/react".

This line from your documentation causes a compile error: import 'tippy.js/dist/tippy.css'; // optional

Solution is to install "tippy.js" in addition to "@tippyjs/react".

If that is on purpose, please include it in the documentation. If not, what is the proper way to import the styles?

Exactly, I’m trying to build a third project and the build crash because I can’t find the tippy.css file of tippy.js/dist because the main library is not installed, recommend include in the installation the central library also to stop this crash.

@ellvtr
Copy link
Author

ellvtr commented Sep 24, 2024

My workaround is to copy the file 'tippy.js/dist/tippy.css' from the old "tippy.js" package and remove that package again.
In most projects, you'd need to make custom CSS anyway.
But the documentation should be fixed nevertheless. And I suggest including that css file in the new package "@tippyjs/react", so people have a default starting point.

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

No branches or pull requests

2 participants