Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

vite watch is not working in node_modules directory. #9699

Closed
keymasroy opened this issue Dec 14, 2022 · 1 comment
Closed

vite watch is not working in node_modules directory. #9699

keymasroy opened this issue Dec 14, 2022 · 1 comment

Comments

@keymasroy
Copy link

Environment


  • Operating System: Windows_NT
  • Node Version: v16.15.1
  • Nuxt Version: 3.0.0
  • Nitro Version: 1.0.0
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: ssr, modules, css, experimental, vite, hooks, ustra
  • Runtime Modules: @ustra/nuxt@3.0.0-pr.21, @hcorestore/common@1.0.0
  • Build Modules: -

Reproduction

later...

Describe the bug

I want to watch a directory in node_modules and set nuxt configuration as below.

export default defineNuxtConfig({
  ssr: false,
  modules: ['@ustra/nuxt', '@hcorestore/common'],
  experimental: {
    payloadExtraction: false,
  },
  vite: {
    server: {
      watch: {
        ignored: ['!**/node_modules/@ustra/**'],
      },
    },
    optimizeDeps: {
      exclude: ['@ustra/nuxt', '@ustra/core'],
    },
  },
})

but is not working...
Anyone has solution ????

Additional context

No response

Logs

No response

@harlan-zw
Copy link
Collaborator

Maybe just symlink it?

@nuxt nuxt locked and limited conversation to collaborators Dec 20, 2022
@danielroe danielroe converted this issue into a discussion Dec 20, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants