nuxt: `run` is extremely slow after upgrade 3.5.1 from 3.5.0 with Window Os

Environment


  • Operating System: Windows_NT
  • Node Version: v16.14.0
  • Nuxt Version: 3.5.1
  • Nitro Version: 2.4.1
  • Package Manager: pnpm@8.3.1
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

none

Describe the bug

run is very slow after upgrading to v3.5.1 from v3.5.0. I tried it with Window and Mac both and only with Window os gets slow after upgrading to nuxt v3.5.1.

image image

Additional context

No response

Logs

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 8
  • Comments: 17 (4 by maintainers)

Most upvoted comments

Would you try setting experimental.watcher to chokidar?

Would you try setting experimental.watcher to chokidar?

image

It works with that.

@CharlesBT I don’t know if it works for you.

I found that it watch the node_modules files in the subproject, so I ignored it and it worked.

So I hope this issue to be fixed.

export default defineNuxtConfig({
  ignore: [
    '**/*.stories.{js,ts,jsx,tsx}',
    '**/*.{spec,test}.{js,ts,jsx,tsx}',
    '**/*.d.ts',
    '.output',
    '**/-*.*',
    // watcher ignore docs/* to avoid preformance issue
    'docs',
  ],
}

I updated form 3.4.3 to 3.5.1 and instantaneously noticed the slow performace. It took 11 minutes to start!!!

Here are some data:

3.4.3 image

3.5.1 image

3.5.1 with experimental.watcher: "chokidar" image

Noticed this myself, the quickest way to replicate it is to just setup a docus site

npx nuxi init -t themes/docus

Then update the package.json to the latest versions, including nuxt 3.5.1

Not sure if it’s related but I’m also noticing the search box under https://content.nuxtjs.org/ is broken as well

Setting the following does fix things

  experimental: {
    watcher: 'chokidar'
  },