Skip to content
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

Cannot use relative URL with global fetch #662

Open
jonshipmansmc opened this issue Mar 20, 2023 · 0 comments
Open

Cannot use relative URL with global fetch #662

jonshipmansmc opened this issue Mar 20, 2023 · 0 comments

Comments

@jonshipmansmc
Copy link

Using SvelteKit inside vite as a plugin.

Internal server error: Cannot use relative URL (C:\Users\jon\Repositories\frontend\node_modules@saschazar\wasm-webp/wasm_webp.wasm) with global fetch — use event.fetch instead: https://kit.svelte.dev/docs/web-standards#fetch-apis

I tried to figure out the relative URL in the source but was unable to. Should be a simple fix of path.resolve serverside for importing the wasm file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant