6
我在使用Angular-cli的Angular 2 final中使用observables。加載資源失敗:Safari 9.1.2中的Observable.js.map
- 角2.0.0最終
- 角-CLI:1.0.0-beta.15
- 節點:6.3.0
- MAC OS:埃爾卡皮坦
依賴於包.json:
"dependencies": {
"@angular/common": "2.0.0",
"@angular/compiler": "2.0.0",
"@angular/core": "2.0.0",
"@angular/forms": "2.0.0",
"@angular/http": "2.0.0",
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@angular/router": "3.0.0",
"bootstrap-sass": "^3.3.7",
"chart.js": "^2.2.2",
"core-js": "^2.4.1",
"d3": "^4.2.3",
"d3-tip": "^0.7.1",
"ionicons": "^3.0.0",
"moment": "^2.15.1",
"rxjs": "5.0.0-beta.12",
"ts-helpers": "^1.1.1",
"zone.js": "^0.6.23"
}
我的應用程序在除Safari 9.1.2以外的所有瀏覽器都能正常工作 - 它拋出去安慰此錯誤消息:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:4200/Observable.js.map
我試圖導入Rxjs在angular_cli.json:
"scripts": [
"../node_modules/rxjs/Rx.js"
],
另外,我試圖導入rxjs到app.module.ts和工作組件如下:
import {Observable} from 'rxjs/Rx';
但是不斷收到相同的錯誤。
我做錯了什麼? 很奇怪,只有Safari遇到這個錯誤。
我已經在iOS 8.3中運行應用程序離子同樣的問題,你解決了這個了嗎? – Zahema
我有同樣的問題,你是否設法解決這個問題? –