-4

I am getting an error when loading a 3rd party script on a website that I can't reproduce.

The error is:

ReferenceError: Can't find variable x

How/why is this different than "x is not defined"?

Steven
  • 691
  • 3
  • 10
  • 26
  • 1
    @Steven It's the same error; some libraries catch the error and re-throw it with that message. –  Nov 13 '19 at 20:14
  • 4
    `x is not defined`, `x is not declared`, `x is not in scope`, `can't find variable x` are usually all just variations of the same error, their messages differing because of different browsers or browser versions. – Bergi Nov 13 '19 at 20:14
  • @Bergi - Message came in on Safari 13.0.3 on Mac OSX 10.15 – Steven Nov 13 '19 at 20:18
  • 1
    @Steven disagree back. We are no psychics – ibrahim mahrir Nov 13 '19 at 20:18
  • https://stackoverflow.com/questions/18641899/what-is-the-difference-between-bower-and-npm?rq=1 How is this question any different? No code, feels like a discussion post... – Steven Nov 13 '19 at 20:20

1 Answers1

-1

"Can't find variable" is a Safari message, unlike other browsers.

Safari JS message - Citation

Thanks all, I'll take the points.

Steven
  • 691
  • 3
  • 10
  • 26