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
ERROR The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
at Object.rm (node:internal/fs/promises:722:38)
at clearDir (node_modules/nuxi/dist/shared/nuxi.976cd438.mjs:11:20)
at Object.run (node_modules/nuxi/dist/chunks/analyze.mjs:93:11)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.4fde776c.mjs:1648:16)
at async runCommand$1 (node_modules/nuxi/dist/shared/nuxi.4fde776c.mjs:1639:11)
at async runMain$1 (node_modules/nuxi/dist/shared/nuxi.4fde776c.mjs:1773:7)
The path here is the analyzeDir property in the nuxt config. This property does not seem to be assigned a default value ("/<rootDir>/.nuxt/analyze" as described in the nuxt docs), nor be resolved for example in the nitro config creation. buildDir is resolved in this case:
Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.
What will happen?
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.
If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
How can I create a reproduction?
We have a couple of templates for starting with a minimal reproduction:
Environment
Reproduction
Should be self-explanatory
Describe the bug
Running
nuxi analyze
results inThe path here is the
analyzeDir
property in the nuxt config. This property does not seem to be assigned a default value ("/<rootDir>/.nuxt/analyze"
as described in the nuxt docs), nor be resolved for example in the nitro config creation.buildDir
is resolved in this case:bridge/packages/bridge/src/nitro.ts
Lines 67 to 69 in 1fa3dce
Additional context
Nitro enabled, Vite disabled.
When manually providing a value,
nuxi analyze
runs generates an html report.However, this default path seems to be conflicting with the 'Starting stats server' step.
Logs
No response
The text was updated successfully, but these errors were encountered: