nuxt-modules / tailwindcss

Tailwind CSS module for Nuxt
https://tailwindcss.nuxtjs.org
MIT License
1.68k stars 183 forks source link

[6.12] Cannot read properties of undefined (reading 'some') #865

Closed fasenderos closed 4 months ago

fasenderos commented 4 months ago

Environment


Reproduction

No response

Describe the bug

In a newly created Nuxt.js project, running nuxt dev fails after adding @nuxtjs/tailwindcss to nuxt.config.ts. The error points to this line of code. https://github.com/nuxt-modules/tailwindcss/blob/a0d75998f1c12ea4fbb7cefefe0c90c1cdd99023/src/context.ts#L190

Here is my nuxt.config.ts

export default defineNuxtConfig({
  devtools: { enabled: true },
  modules: ['@nuxtjs/tailwindcss'],
});

Additional context

The project is a pnpm monorepo where all packages are inside the folder apps and @nuxtjs/tailwindcss has been installed with pnpm --filter=@project/nuxtjs -D -E @nuxtjs/tailwindcss

Logs

No response

ineshbose commented 4 months ago

Can you test nightly 6.12.1-1719430546.7704e81 and confirm if it is solved?