TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of URL. Received undefined

See original GitHub issue

I’m getting this error:

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of URL. Received undefined In my index page https://svelte-house-marketplace.vercel.app/. Im 99% that is caused by the Slidy component.

When I run build in the SvelteKit project, I get these warnings:

vite v2.7.4 building for production...
transforming (35) .svelte-kit\build\runtime\app\navigation.js16:43:01 [vite-plugin-svelte] C:/Users/rcap/Documents/svelte/house-marketplace/node_modules/svelte-slidy/src/Slidy.svelte:4:4 A11y: Redundant role 'region'
2: 
3: <section
4:     role="region"
       ^
5:     tabindex="0"
6:     aria-label="Slidy"
transforming (67) node_modules\uuid\dist\esm-browser\v35.js16:43:03 [vite-plugin-svelte] The following packages did not export their `package.json` 
file so we could not check the "svelte" field. If you had difficulties importing svelte components from a package, then please contact the author and ask them to export the package.json file.

Did you know what’s happening?

More details:

https://stackoverflow.com/questions/70749054/what-can-be-triggering-the-typeerror-err-invalid-arg-type

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rcapdepaulacommented, Jan 20, 2022

Thank you! You can close this issue.

0reactions
Valexrcommented, Jan 20, 2022

& discord maybe useful for you https://discord.gg/svelte#sveltekit

Read more comments on GitHub >

github_iconTop Results From Across the Web

fs.FileRead -> TypeError [ERR_INVALID_ARG_TYPE]: The ...
When I open file, "TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be one of type string, Buffer, or URL. Received type undefined" ...
Read more >
[Fix] TypeError [ERR_INVALID_ARG_TYPE]: The “path ...
Have you run into the error “TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined”? In this story I'll go...
Read more >
[err_invalid_arg_type]: the "path" argument must be of type ...
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined at Object.
Read more >
[Solved]-fs.FileRead -> TypeError [ERR_INVALID_ARG_TYPE]
Coding example for the question fs.FileRead -> TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be one of type string, Buffer, or URL. Received ......
Read more >
TypeError [ERR_INVALID_ARG_TYPE] when trying to build ...
... "path" argument must be of type string or an instance of Buffer or URL. Received undefined at readFile (node:fs:393:10) at go$readFile ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found