tailwindcss icon indicating copy to clipboard operation
tailwindcss copied to clipboard

Can not set tailwindcss.config property "plugins" in nuxt.config

Open talaxasy opened this issue 3 years ago • 2 comments

Version

@nuxtjs/tailwindcss: ^5.3.1 nuxt: 3.0.0-rc.6

Bug description

When I try to connect plugin called aspectRatio into the nuxt.config --> tailwindcss --> config --> pligins I get an error

What is Expected?

I successfully connect my plugin

What is actually happening?

Type '{ plugins: any[]; }' is not assignable to type 'Config'.
  Property 'content' is missing in type '{ plugins: any[]; }' but required in type 'RequiredConfig'.

error 1_1 error 1_2

talaxasy avatar Aug 16 '22 06:08 talaxasy

Same issue. Any ideas?

yf-hk avatar Sep 05 '22 09:09 yf-hk

It seems that you'll have to specify content attribute in the config

yf-hk avatar Sep 05 '22 09:09 yf-hk

Closing this issue as it is believed to be resolved/stale now - please feel free to comment if it is still an issue in the latest version of the module.

ineshbose avatar May 10 '23 22:05 ineshbose

image

Using the latest version and still persists

image

It requires the content key in order to get be "fixed" (not expected behaviour)

image

jonatandorozco avatar May 25 '23 22:05 jonatandorozco

@jonorozcoc yes, but let them know it should be noted in docs

talaxasy avatar May 29 '23 07:05 talaxasy

@talaxasy, if that's the ideal scenario, yes, it should be included in the docs. But, as I only want to update the plugins key, why should I include the content key? That's what I mean with that being an unexpected behavior

jonatandorozco avatar May 29 '23 15:05 jonatandorozco