CreativeBulma / bulma-tooltip

Display a tooltip attached to any kind of element, in different position.
MIT License
76 stars 40 forks source link

How do I import this package? #9

Closed yh54321 closed 4 years ago

yh54321 commented 4 years ago

I have been using the 'bulma-tooltip' package in my React project and now want to upgrade to '@creativebulma/bulma-tooltip'. I have been importing the packge (and all other css packages) with the following code: import 'bulma-tooltip/dist/css/bulma-tooltip.min.css';

Now that I have installed the new tooltip package via npm, I have replaced that line with the following one: import '@creativebulma/bulma-tooltip/dist/css/bulma-tooltip.min.css';

When launching the application, I get the following error: "Module not found: Can't resolve '@creativebulma/bulma-tooltip/dist/css/bulma-tooltip.min.css'"

The 'Get Started' section of the documentation does not explain how to import the package.

Help with this matter will be appreciated

yh54321 commented 4 years ago

Oh...the 'css' folder has been removed. So it's: import '@creativebulma/bulma-tooltip/dist/bulma-tooltip.min.css'; Having importation instructions in the 'Get Started' can prevent such errors.

oneblink-developers commented 3 years ago

Is there a reason this is not in the documentation?