-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The "path" argument must be of type string. Received an instance of Array/undefined #515
Comments
https://stackblitz.com/github/AndreyYolkin/nuxt-bug-path-argument |
Same error |
Same error. |
I have the same |
The same one |
+1 *upd: |
In case you can't preview the home page, it is related to your user-defined middleware. I honestly have no idea why, but in the end you should have something like this: // server/middleware/yourMiddleware.ts
import { defineMiddleware } from 'h3'
export default defineMiddleware((req, res, next) => {
// your code
next()
} You could try to omit the |
To revert to a working version: |
@phoenix-ru I don't have any custom middleware defined but still I can't see the home page |
OMG, I was simply missing index.vue in pages folder, what a facepalm moment 🤦♂️🤦♂️🤦♂️ |
Environment
Linux
v16.17.0
2.16.0-27704181.7b3bab3
0.4.24
[email protected]
vite
bridge
,serverHandlers
,devServerHandlers
,buildModules
-
()
,@nuxt/[email protected]
Reproduction
https://github.com/AndreyYolkin/nuxt-bug-path-argument
Describe the bug
When we are starting app in dev mode, something goes wrong and nuxt reporting that some package paths are broken. Some paths consist of Array, some are undefined.
Additional context
Package name in logs (
@nuxt/ui-templates
) appeared because I tried to wrap module resolving function in try catch to determine the broken package. Howerer, it actually didn't help a lotLogs
The text was updated successfully, but these errors were encountered: