Skip to content

No way to configure server.watch.ignored causing UNKNOWN: unknown error, watch #1793

Description

@jaketig

I am using @maizzle/nuxt on windows
My project has a symlinked folder to an smb share (a workaround to deal with unjs/pathe#245).

There appears to be no way to configure server.watch.ignored on the vite dev server that gets spun up here:

framework/src/serve.ts

Lines 134 to 140 in 1347cde

server: {
port,
host,
fs: {
allow: [process.cwd(), config.root ?? process.cwd(), devUIDir, ...['vue', 'vue-router', 'reka-ui', '@vueuse/core', '@vueuse/shared', '@lucide/vue', 'class-variance-authority', 'clsx', 'tailwind-merge', 'culori'].map(pkg)],
},
},

This causes the following error to be thrown thousands of times and effectivly hangs my nuxt dev server

ERROR  [unhandledRejection] UNKNOWN: unknown error, watch
    at FSWatcher._handle.onchange (node:internal/fs/watchers:267:21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions