question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] undefined path error on vercel

See original GitHub issue

Describe the bug

In localhost, I don’t have any problems, but when I deploy the project on Vercel, I get this error:

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

I access the URL https://svelte-house-marketplace.vercel.app/ and get the error, but when I refresh the page, works normally.

Reproduction

https://github.com/rcapdepaula/svelte-house-marketplace

Logs

No response

System Info

Windows

Severity

serious, but I can work around it

Additional Information

I can’t find identify where is the error. I have no idea.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
benmccanncommented, Jan 23, 2022

I’m guessing not since the function logs he posted in the last comment say “Failed Requests None”

0reactions
rcapdepaulacommented, May 21, 2022

My svelte.config:

import adapter from '@sveltejs/adapter-auto'

/** @type {import('@sveltejs/kit').Config} */
const config = {
	kit: {
		vite: {
			server: {
				fs: true
			}
		},
		adapter: adapter()
	}
}

export default config

I just do it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors – Vercel Docs
A list of errors provided by Vercel CLI or the REST API, with details on how they occur and how to resolve them....
Read more >
I am getting errors when deploying to Vercel. Can anyone ...
Type error: Argument of type 'IncomingMessage & { cookies: NextApiRequestCookies; }' is not assignable to parameter of type 'null | undefined'.
Read more >
Getting multiple TypeErrors when deploying using Vercel.
I'm trying to deploy my webapp for the first time and I'm getting this error on Vercel: TypeError: Cannot read property 'split' of...
Read more >
Advanced Features: Error Handling
Handle errors in your Next.js app. ... Deploy Next.js on Vercel → ... To monitor client errors, use a service like Sentry, Bugsnag...
Read more >
typeerror: cannot read properties of undefined (reading 'get ...
On my machine the application is working correctly but when I deploy it to vercel it shows this error. Below is my movie.js...
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