Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

212
Views
SyntaxError: Invalid character '\ud835'

SyntaxError: Invalid character '\ud835'

When running a web application (built with Typescript + Webpack) inside Safari I am facing the error above (not faced in other browsers).

From searching all node_modules, ethers.js contains:

const EtherSymbol = "\u039e"; // "\uD835\uDF63";\n//#

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

The solution in this specific scenario was to add the terser plugin within webpack 5.

https://webpack.js.org/plugins/terser-webpack-plugin/

const isModern = false;
const customTerserOptions = { ... } // from this url - https://github.com/terser/terser/issues/729

module.exports = {
    optimization: {
        minimize: true,
        minimizer: [new TerserPlugin({
            terserOptions: customTerserOptions
about 4 years ago · Juan Pablo Isaza Report

0

In my case this code did the trick

const TerserPlugin = require("terser-webpack-plugin");

const webpackConfig = {
  ...
  optimization: {
    minimize: true,
    minimizer: [new TerserPlugin({
      terserOptions: {
        safari10: true
      }
    })],
  }
  ...
}

module.exports = webpackConfig;
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!