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

import { env } from '$env/dynamic/public' is not compatible on iOS #11739

Open
leonwang908 opened this issue Jan 25, 2024 · 1 comment
Open

Comments

@leonwang908
Copy link

leonwang908 commented Jan 25, 2024

Describe the bug

There are 2 behaviors from iOS

  1. Access a empty link will entry a endless loop to call that empty link just like DDOS
  2. Even a empty svelte or only . Safara/Chrome/Edge will return 500 internal error

Reproduction

hogehoge.svelte
<script lang="ts">
  import { env } from '$env/dynamic/public'
<script>

+layout.svelte
<script lang="ts">
  import hogehoge from hogehoge.svelte
<script>

+page.svelte
<button>Upload</button>

Logs

No response

System Info

All packages have been updated to their latest versions.

System:
    OS: iOS 16.6.1
Binaries:
    Node: LTS
Browsers:
    Safari
npmPackages:
    @sveltejs/adapter-node
    "@sveltejs/adapter-auto": "^3.0.0",
    "@sveltejs/kit": "^2.0.0",
    "@sveltejs/vite-plugin-svelte": "^3.0.0",

Severity

serious, but I can work around it

Additional Information

No response

@devunt
Copy link

devunt commented Jan 27, 2024

This is a regression of #11364.

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

2 participants