nuxt-modules / tailwindcss

Tailwind CSS module for Nuxt

Home Page:https://tailwindcss.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version 6.11.x throws a compatability error when Nuxt bridge is not used

cjpearson opened this issue · comments

Version

@nuxtjs/tailwindcss: 6.11.0 (Or newer)
nuxt: 2.17.3

Steps to reproduce

Upgrade to version 6.11.0 of @nuxtjs/tailwindcss in a Nuxt 2 non-bridge project and run the build.

What is Expected?

Build successfully without warnings or errors

What is actually happening?

There is now a warning that Nuxt bridge is required.

 ERROR  Nuxt compatibility issues found:                                                                                                                      5:50:28 PM
 - [bridge] Nuxt bridge is required

  - [bridge] Nuxt bridge is required
  at assertNuxtCompatibility (node_modules/@nuxtjs/tailwindcss/node_modules/@nuxt/kit/dist/index.mjs:76:11)

The application still appears to work fine. Could this be a false positive?

Looks like it might be related to #784. Maybe we could add an isNuxt2() check around here?

addImports({

Thanks for reporting - I noticed this too. I assume the code still considers editorSupport to be set to true if isNuxt2 (need to safeguard that). PR is welcome 🙂

Should be fixed in nightly if you'd like to try and confirm; will release 6.11.3 then.

Just tried it and it seems to work well. Thanks for the quick fix!