question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS 9.3 simulator throws "ReferenceError: Can't find variable: SockJS" error for "ng serve -o"

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Angular CLI: 1.5.0
Node: 8.5.0
OS: darwin x64
Angular: 5.0.0
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic
... platform-server, router

@angular/cli: 1.5.0
@angular/tsc-wrapped: error
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.1
typescript: 2.4.2
webpack: 3.8.1

Repro steps.

  • ng serve -o
  • Fire up a simulator device with iOS 9.3
  • Access your app at localhost:xxxx

The log given by the failure.

ReferenceError: Can't find variable: SockJS

Desired functionality.

Local webserver should work in iOS 9.3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:12
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

27reactions
danielcrispcommented, Nov 15, 2017

I’ve found that disabling sourcemaps is a workaround:

$ ng serve --aot --no-sourcemap
17reactions
meiordaccommented, Nov 8, 2017

same for Safari 10.1.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unhandled JS Exception: ReferenceError: Can't find variable
I have won. I am crying. At last I found "i". It's my victory of seeing the code for four days. The error...
Read more >
yVj - River Thames Conditions
#de Atm er rak error ost, Flight 1950, Elta courier track, Seco mines elementary, Highstreet abbotsford walmart, All ranks in point blank, ...
Read more >
Viewing online file analysis results for 'skaping.js'
skaping.js. This report is generated from a file or URL submitted to this webservice on March 9th 2017 09:48:12 (UTC) and action script ......
Read more >
https://huggingface.co/jeniya/BERTOverflow/commit/...
+/ +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +: +; +< += +> +? +@ +A +B +C +D +E...
Read more >
W3layouts cms exploit - Weebly
can't find the path, because it does not exist status: 400, Message: The string ... authorization axios delete throws cors error axios download...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found