-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt 3 issue #269
Comments
plz use v6: yarn add vue-tippy@v6
# or
npm install vue-tippy@next |
Thanks, I've already found it somehow. |
Should I manually import tippy component where it is needed or install it globally in Nuxt 3? |
you can do whatever you want, I usually create a plugin: // plugins/tippy.ts
import VueTippy from 'vue-tippy';
import 'tippy.js/dist/tippy.css'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueTippy, {
defaultProps: {
arrow: true
},
flipDuration: 0,
})
}) |
I have the same issue with nuxt rc-13, only with built version import VueTippy from 'vue-tippy'
import 'tippy.js/dist/tippy.css'
import 'tippy.js/themes/light.css'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueTippy, {
defaultProps: {
theme: 'light',
},
})
})
|
do u have the latest version? edit: tested and works fine with |
I already tried this. Even copy pasted your code, but it says "Failed to resolve component: VueTippy" In .nuxt/types/plugins.d.ts I see. Nuxt version: ^3.0.0-rc.13 |
works for me https://github.com/KABBOUCHI/nuxt-3-vue-tippy - https://nuxt-3-vue-tippy.vercel.app/ did u try |
It worked somehow. Thanks! |
Can't install it in Nuxt 3 project:
yarn add v1.22.19
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning nuxt > @nuxt/vite-builder > cssnano > cssnano-preset-default > postcss-svgo > svgo > [email protected]: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
warning vue-tippy > tippy.js > [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
[2/4] Fetching packages...
warning [email protected]: The engine "vscode" appears to be invalid.
[3/4] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "vue@>=2.2.0".
warning "vue-imask > [email protected]" has unmet peer dependency "vue@^3.0.0-0 || ^2.6.0".
warning "@nuxtjs/tailwindcss > @nuxt/postcss8 > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "@nuxtjs/tailwindcss > @nuxt/postcss8 > [email protected]" has unmet peer dependency "webpack@^4.27.0 || ^5.0.0".
warning " > @tailwindcss/[email protected]" has unmet peer dependency "tailwindcss@>=2.0.0 || >=3.0.0 || >=3.0.0-alpha.1".
warning " > [email protected]" has unmet peer dependency "webpack@^5.0.0".
warning " > [email protected]" has unmet peer dependency "vue@^3.0.0".
warning " > [email protected]" has unmet peer dependency "vue@^2.5.9".
error An unexpected error occurred: "EPERM: operation not permitted, unlink '\Desktop\320_ddoctors\sites\ddoctors.ru\node_modules\esbuild-windows-64\esbuild.exe'".
info If you think this is a bug, please open a bug report with the information provided in "\Desktop\320_ddoctors\sites\ddoctors.ru\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command
The text was updated successfully, but these errors were encountered: