-
Notifications
You must be signed in to change notification settings - Fork 187
Description
Hi,
I've created 2 seperate projects:
npx nuxi init --template layer nuxt-test-layer
npx nuxi init --template v4-compat nuxt-test-app
From the app, I required the layer hosted in our private gitlab instance and by providing GIGET_GITLAB_URL
and GIGET_AUTH
inside the .env
file.
extends: [
['gitlab:sleblanc/nuxt-test-layer', { install: true }]
]
Once I started the project using pnpm dev
, I instantly got this error:
ERROR [unhandledRejection] EMFILE: too many open files, watch
at FSWatcher._handle.onchange (node:internal/fs/watchers:207:21)
After some debuging, I realised I needed to add future: { compatibilityVersion: 4 }
to the layer too.
This made me thing, maybe there should be a template for a v4 compatible layer ?
Something like npx nuxi init --template v4-compat-layer test-layer
Also, it might be a good idea to warn the user if he try to use a v3 layer in v4, since it seem to cause incompatibility.
I didn't think it would since only the directory structure is slightly different.
I had to create app/
and move app.vue
and components/HelloWorld.vue
.
I don't know why without these changes, it would crash, but it seems like Vite was watching the whole node_modules to me.
I will open a new issue in @nuxt/nuxt if this is confirmed as a bug.