floating-vue
floating-vue copied to clipboard
Cannot read property 'theme' of undefined
ERROR in ./node_modules/v-tooltip/dist/v-tooltip.css friendly-errors 12:18:01
ERROR in ./node_modules/v-tooltip/dist/v-tooltip.css friendly-errors 12:18:01
Module build failed (from ./node_modules/@nuxt/postcss8/node_modules/postcss-loader/dist/cjs.js): friendly-errors 12:18:01
TypeError: Cannot read property 'theme' of undefined
at _default (aa-ts/node_modules/@nuxtjs/tailwindcss/node_modules/tailwindcss/lib/lib/substituteScreenAtRules.js:16:5)
at aa-ts/node_modules/@nuxtjs/tailwindcss/node_modules/@tailwindcss/jit/src/index.js:50:11
at LazyResult.runOnRoot (aa-ts/node_modules/@nuxt/postcss8/node_modules/postcss/lib/lazy-result.js:339:16)
at LazyResult.runAsync (aa-ts/node_modules/@nuxt/postcss8/node_modules/postcss/lib/lazy-result.js:391:26)
at async Object.loader (aa-ts/node_modules/@nuxt/postcss8/node_modules/postcss-loader/dist/index.js:95:14)
friendly-errors 12:18:01
@ ./node_modules/v-tooltip/dist/v-tooltip.css 4:14-168 15:3-20:5 16:22-176
@ ./plugins/v-tooltip.ts
@ ./.nuxt/index.js
@ ./.nuxt/client.js
Please provide a reproduction so I can find what the problem is.
The css files referenced in the docs are no longer available in the node_modules/v-tooltip/dist
directory.

Ah I think I see. Docs are referencing the beta version of the library. So if you miss the instructions to yarn add v-tooltip@next
and just run yarn add v-tooltip
you'll install the old version of v-tooltip which does not ship with the css.