Skip to content

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

@fasenderos

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: [email protected]
  • Builder: -
  • User Config: devtools, modules
  • Runtime Modules: @nuxtjs/[email protected]
  • 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

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