Repository navigation
iOS 15: Safari 15 için derleme (açılış çökmesi) - #277
Merged
Merged
Conversation
Next 16 varsayılan olarak Safari 16.4+ için derliyor; uygulamanın iOS alt
sınırı 15.0. iOS 15.8'de açılışta "SyntaxError: Unexpected token '{'"
(sınıf statik bloğu, Safari 16.4+) ile "Rabi açılamadı" ekranı çıkıyordu.
browserslist'e safari 15 / ios_saf 15 eklenince SWC bu sözdizimini indiriyor.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sorun
App Store'dan yükleyen bir kullanıcıda (iPhone, iOS 15.8.8) uygulama açılmıyor:
SyntaxError: Unexpected token '{' @ 16cy_u7zp784s.js:1→ "Rabi açılamadı".Sebep
Next 16 varsayılan browserslist'i
safari 16.4. Next'in kendi App Router kodundakiclass … { static { … } }(sınıf statik bloğu, Safari 16.4+) olduğu gibi pakete giriyor.Uygulamanın
IPHONEOS_DEPLOYMENT_TARGETdeğeri 15.0, yani iOS 15–16.3 cihazlar yükleyebiliyor ama açamıyor.Çözüm
package.json→browserslist:safari 15,ios_saf 15eklendi (diğerleri Next varsayılanı).Doğrulama
npm run buildsonrasıout/içindestatic{bloğu ve regex lookbehind kalmadı (önce16cy_…jsiçinde vardı).npm run typechecktemiz.🤖 Generated with Claude Code