vue-tippy
vue-tippy copied to clipboard
Couldn't find package [...] light.css on the npm registry
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 🙌🏼
hi, which vue-tippy version u are using? plz, can u share ur package.json file?
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);
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.
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?
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.