Sitelet https://github.com/nuxt-modules/tailwindcss/issues/865
Skip to content

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

Description

@fasenderos

Environment


  • Operating System: Windows_NT
  • Node Version: v20.14.0
  • Nuxt Version: 3.6.5
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.6
  • Package Manager: pnpm@9.4.0
  • Builder: -
  • User Config: devtools, modules
  • Runtime Modules: @nuxtjs/tailwindcss@6.12.0
  • Build Modules: -

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.

if (templates.some(t => configPaths.includes(t.dst))) {

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions