You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering a syntax error when trying to use this library on Safari in iOS 14. If I try to load the Puck demo site, it fails to load and displays the following error: SyntaxError: Unexpected private name #B. Cannot parse class method with private name. I am getting a similar error in my project that uses Puck as well.
Environment
Device: iPhone 7 (iOS 14.6)
Browser: Safari
Library Version: 0.16.1
Framework: NextJS 15.0.3
Steps to Reproduce
Open the app/demo website using Safari on iOS 14.
Attempt to load the page where the library is used.
Observe the syntax error in the console.
Expected Behavior
The app should load without syntax errors, even on older browsers like Safari on iOS 14.
Actual Behavior
The app fails to load, and the syntax error above is displayed.
Possible Cause
It appears that the library might be using JavaScript class private fields (e.g., #B), which aren't supported in older versions of Safari. According to browser compatibility documentation, private class fields are available in iOS 14.5+ Safari, but it still doesn't load.
The text was updated successfully, but these errors were encountered:
Description
I'm encountering a syntax error when trying to use this library on Safari in iOS 14. If I try to load the Puck demo site, it fails to load and displays the following error:
SyntaxError: Unexpected private name #B. Cannot parse class method with private name.
I am getting a similar error in my project that uses Puck as well.Environment
Steps to Reproduce
Expected Behavior
The app should load without syntax errors, even on older browsers like Safari on iOS 14.
Actual Behavior
The app fails to load, and the syntax error above is displayed.
Possible Cause
It appears that the library might be using JavaScript class private fields (e.g.,
#B
), which aren't supported in older versions of Safari. According to browser compatibility documentation, private class fields are available in iOS 14.5+ Safari, but it still doesn't load.The text was updated successfully, but these errors were encountered: