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

new URL(url, import.meta.url) is not supported in SSR #5302

Closed
MathiasWP opened this issue Jun 28, 2022 · 1 comment
Closed

new URL(url, import.meta.url) is not supported in SSR #5302

MathiasWP opened this issue Jun 28, 2022 · 1 comment
Labels

Comments

@MathiasWP
Copy link
Contributor

MathiasWP commented Jun 28, 2022

Describe the bug

Similar issue as #1896, but it also fails in when running in dev mode.

Reproduction

https://github.com/MathiasWP/import-meta-url-ssr-bug

Logs

No response

System Info

System:
    OS: macOS 11.4
    CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
    Memory: 38.02 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.15.1 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 8.13.1 - /usr/local/bin/npm
  Browsers:
    Brave Browser: 103.1.40.107
    Chrome: 103.0.5060.53
    Firefox: 100.0
    Safari: 14.1.1
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.52 
    @sveltejs/kit: next => 1.0.0-next.355 
    svelte: ^3.44.0 => 3.48.0

Severity

serious, but I can work around it

Additional Information

No response

@benmccann benmccann added the vite label Jun 28, 2022
@benmccann
Copy link
Member

Thanks for the report. However, I don't think there's anything we can do about this in SvelteKit. Please file an issue in Vite as described here: https://github.com/sveltejs/kit#bug-reporting

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

No branches or pull requests

2 participants