You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
andGIGET_AUTH
inside the.env
file.Once I started the project using
pnpm dev
, I instantly got this error: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 moveapp.vue
andcomponents/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.
The text was updated successfully, but these errors were encountered: