KABBOUCHI / vue-tippy

VueJS Tooltip powered by Tippy.js
https://vue-tippy.netlify.app
MIT License
726 stars 87 forks source link

Couldn't find package [...] light.css on the npm registry #250

Closed keeev closed 1 year ago

keeev commented 2 years ago

Hey there, did something happen to the light theme? I updated my dependencies and got this error which seems to prevent to go on with the build/installing other dependencies:

error Couldn't find package "vue-tippy/node_modules/tippy.js/themes/light.css" on the "npm" registry.

Although it might be specific for my repo/env:

Module not found: Error: Can't resolve 'vue-tippy/node_modules/tippy.js/themes/light.css' in '...'
 @ ./resources/js/app.js 28:0-58
 @ multi ./resources/js/app.js ./resources/sass/app.scss ./resources/sass/app-rtl.scss

Unfortunately, that's all I know for now.

Thanks 🙌🏼

KABBOUCHI commented 2 years ago

hi, which vue-tippy version u are using? plz, can u share ur package.json file?

keeev commented 2 years ago

Oh, yeah sure, I'm using: 4.8.0

To make it work with the light the light theme I added this to my app.js in Laravel:

import VueTippy, { TippyComponent } from "vue-tippy";
import "vue-tippy/node_modules/tippy.js/themes/light.css";

Vue.use(VueTippy, {
    directive: "tippy", // => v-tippy
    flipDuration: 0,
    placement: 'bottom',
    animation: 'shift-toward',
    duration: '100',
    theme: 'light',
    popperOptions: {
        modifiers: {
            preventOverflow: {
                enabled: true
            },
             options: {
        boundary: element,
      }, 
        }
    }
}); 

Vue.component("tippy", TippyComponent);
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

keeev commented 2 years ago

Because I got the reminder of the stale bot, is there any way to fix this other than getting rid of or commenting out the white theme?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.