Skip to content

Nuxt 2 start error - possible @nuxt/kit regression  #507

@harlan-zw

Description

@harlan-zw

Version

@nuxtjs/tailwindcss: 5.3.0
nuxt: 2.15.8

Reproduction Link

https://stackblitz.com/edit/nuxt-starter-zcq9qt?file=nuxt.config.js,package.json, see: #500

Steps to reproduce

Add module, run dev.

It can be resolved by disabling the viewer:

tailwindcss: {
    viewer: false,
  },

What is Expected?

It to work

What is actually happening?

It crashes

 FATAL  Cannot read properties of undefined (reading 'push')                                                                                                                                    14:01:12

  at addDevServerHandler (node_modules/@nuxt/kit/dist/index.mjs:196:38)
  at setup (node_modules/@nuxtjs/tailwindcss/dist/module.mjs:199:7)
  at async ModuleContainer.normalizedModule (node_modules/@nuxt/kit/dist/index.mjs:607:5)
  at async ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:239:20)
  at async ModuleContainer.ready (node_modules/@nuxt/core/dist/core.js:55:5)
  at async Nuxt._init (node_modules/@nuxt/core/dist/core.js:478:5)

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