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
Hello. I tried to reproduce and it seems to me that this log is quite helpful to understand the problem:
ERROR [unhandledRejection] ENOTDIR: not a directory, stat '/Users/andrey/nuxt-proj/server/api/**/*.{js,mjs,cjs,ts,mts,cts,tsx,jsx}' 22:17:36
at async Object.stat (node:internal/fs/promises:1036:18)
at async isType (node_modules/path-type/index.js:10:17)
at async node_modules/globby/index.js:39:4
at async Promise.all (index 0)
at async directoryToGlob (node_modules/globby/index.js:38:16)
at async Promise.all (index 0)
at async node_modules/globby/index.js:192:8
at async Promise.all (index 0)
at async Promise.all (index 0)
at async node_modules/globby/index.js:224:6
ℹ Restarting Nuxt due to error: Error: ENOTDIR: not a directory, stat '/Users/andrey/nuxt-proj/server/api/**/*.{js,mjs,cjs,ts,mts,cts,tsx,jsx}'
Environment
❯ nuxi info
Nuxi 3.0.0 17:10:38
17:10:40
RootDir: /home/projects/nuxt-starter-3rghgt 17:10:40
Nuxt project info: 17:10:40
Linux
v16.14.2
3.0.0
1.0.0
npm@7.17.0
vite
-
-
-
Reproduction
https://stackblitz.com/edit/nuxt-starter-3rghgt?file=server%2Fapi
Describe the bug
When server/api is a file it errors without giving helpful information
Additional context
Accidentally discovered it.
Very low priority bug
Logs
No response
The text was updated successfully, but these errors were encountered: