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

Cannot read property 'theme' of undefined

Open productdevbook opened this issue 3 years ago • 3 comments

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

productdevbook avatar Jul 11 '21 09:07 productdevbook

Please provide a reproduction so I can find what the problem is.

Akryum avatar Jan 06 '22 12:01 Akryum

The css files referenced in the docs are no longer available in the node_modules/v-tooltip/dist directory.

Screenshot 2022-01-11 at 14 21 00

pietvanzoen avatar Jan 11 '22 13:01 pietvanzoen

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.

pietvanzoen avatar Jan 11 '22 13:01 pietvanzoen