-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
- bug report
Versions.
@angular/cli: 1.4.0
node: 6.10.3
os: darwin x64
@angular/common: 4.4.3
@angular/compiler: 4.4.3
@angular/core: 4.4.3
@angular/forms: 4.4.3
@angular/http: 4.4.3
@angular/platform-browser: 4.4.3
@angular/platform-browser-dynamic: 4.4.3
@angular/router: 4.4.3
@angular/cli: 1.4.0
@angular/compiler-cli: 4.4.3
typescript: 2.2.2
macOS El Capitan
Safari 9.1.1 (11601.6.17)
Apple iphone 4s Version 8.4
Repro steps.
npm install -g angular-cli
ng new dummy
cd dummy
update angular-cli.json to host ng server to different host
"defaults": {
"serve": {
"host": "YOUR_NET_MASK"
}
}
Follow this steps to debug your iphone safari on mac safari - https://webdesign.tutsplus.com/articles/quick-tip-using-web-inspector-to-debug-mobile-safari--webdesign-8787
ng serve
Switch to safari on both mac and iphone and navigate to your net mask which is added to angular-cli.json.
The log given by the failure.
Error in safari console
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (polyfills.js.map, line 0)
[Error] TypeError: pre,template,textarea,script,style is not iterable!
exports (polyfills.bundle.js:857:84)
(anonymous function) (polyfills.bundle.js:394)
Set (polyfills.bundle.js:2256)
../../../compiler/@angular/compiler.es5.js (vendor.bundle.js:27931)
webpack_require (inline.bundle.js:55)
../../../platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js (vendor.bundle.js:68017:96)
webpack_require (inline.bundle.js:55)
../../../../../src/main.ts (main.bundle.js:144:112)
webpack_require (inline.bundle.js:55)
(anonymous function) (main.bundle.js:187)
webpack_require (inline.bundle.js:55)
webpackJsonpCallback (inline.bundle.js:26)
global code (main.bundle.js:1)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (InnerSubscriber.js.map, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (app.component.js.map, line 0)
[Error] [WDS] Disconnected!
error
close (vendor.bundle.js:12091)
onclose (vendor.bundle.js:12305)
dispatchEvent (vendor.bundle.js:6698)
(anonymous function) (vendor.bundle.js:7536)
(anonymous function)
invokeTask (polyfills.bundle.js:2968)
runTask (polyfills.bundle.js:2735)
invokeTask (polyfills.bundle.js:3042)
invoke (polyfills.bundle.js:3031)
timer (polyfills.bundle.js:4439)
Desired functionality.
The app should be visible on iphone and mac safari but it's not working on the smaller device which is iphone 4s. It's working fine on iphone 5 and above.