vue-tippy icon indicating copy to clipboard operation
vue-tippy copied to clipboard

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

Open keeev opened this issue 3 years ago • 4 comments

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 🙌🏼

keeev avatar Apr 25 '22 07:04 keeev

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

KABBOUCHI avatar Apr 25 '22 10:04 KABBOUCHI

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);

keeev avatar Apr 26 '22 06:04 keeev

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.

stale[bot] avatar Jun 28 '22 00:06 stale[bot]

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?

keeev avatar Jun 28 '22 06:06 keeev

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.

stale[bot] avatar Sep 09 '22 00:09 stale[bot]