TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of URL. Received undefined
See original GitHub issueI’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:
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you! You can close this issue.
& discord maybe useful for you https://discord.gg/svelte#sveltekit