Next.js Discord

Discord Forum

"SyntaxError: Unexpected private name" on old versions of Safari

Unanswered
Masai Lion posted this in #help-forum
Open in Discord
Masai LionOP
Hi everyone, my application needs to work on older browsers, and I am getting an error "SyntaxError: Unexpected private name" on old versions of Safari. Do I need to modify the webpack config so that it does not include private names in classes, or is there another way to configure nextjs for this? I am using nextjs 14.2.4. Thank you for your time and attention to this.

0 Replies