GithubHelp home page GithubHelp logo

Bug: d.split("+").at is not a function. (In 'd.split("+").at(-1)', 'd.split("+").at' is undefined) error in safari 14.1 running react js about react HOT 5 OPEN

samwac avatar samwac commented on May 1, 2024 1
Bug: d.split("+").at is not a function. (In 'd.split("+").at(-1)', 'd.split("+").at' is undefined) error in safari 14.1 running react js

from react.

Comments (5)

robinheinze avatar robinheinze commented on May 1, 2024

Looks like .at() is only supported in Safari 15.4 and above https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at#browser_compatibility

from react.

pranavlotlikar avatar pranavlotlikar commented on May 1, 2024

Is this a React-specific issue or can it be fixed by a Polyfill?

from react.

robinheinze avatar robinheinze commented on May 1, 2024

I've traced this particular error to pdfjs-dist https://github.com/mozilla/pdfjs-dist/blob/5f07d5a4159bb99eee2f6143d1297f03b45bba58/lib/display/editor/tools.js#L140. So I don't think it's a React specific issue.

from react.

pranavlotlikar avatar pranavlotlikar commented on May 1, 2024

How should I go about handling this issue as my React application is coming blank on some older version of Safari browser?
In the console, the above error is shown.

from react.

guillaumebrunerie avatar guillaumebrunerie commented on May 1, 2024

Pdf.js does not support Safari 14.1: https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#legacy-build
This has nothing to do with React.

from react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.