Visual Studioで完全に実行されているAngular 2を使用して、VS 2015(更新プログラム3) Windows 10のプロフェッショナルPCで しかし、ときに私は(メソッドを公開するファイルシステムを使用して)私の地元のIISインスタンスにアプリケーションをデプロイ、私はというエラーを取得する:FirefoxのでAngular 2 Visual Studio 2015でIISに展開すると "route is undefined"エラーが発生する
:(約束で)キャッチされない:例外TypeError:ルートは、Chromeで
定義されていません:Uncaught(約束):TypeError:未定義のプロパティ 'outlet'を読み取ることができません
ローカルで正常に動作しているため、何が原因か分かりません。 404エラーは発生しません。Chromeのネットワークタブには、大量のファイルが正常に読み込まれています。
私はtinkerを使用するために多くのデプロイメント構成パラメータを見つけることができませんでした。スタックトレース情報は、すべて(私には)役に立たない、誰かに何かを明らかにすることができるので、ここでは(Firefoxのから)です:
Unhandled Promise rejection: route is undefined ; Zone: angular ; Task: Promise.then ; Value: TypeError: route is undefined
Stack trace:
[email protected]://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:734:9
[email protected]://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:550:13
[email protected]://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:540:24
[email protected]://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:530:20
expandSegmentChildren/<@http://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:534:76
mapChildren/<@http://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:210:44
[email protected]://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:82:17
[email protected]://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:208:9
[email protected]://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:534:16
[email protected]://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:527:39
[email protected]://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:503:43
Router</Router.prototype.runNavigate/<@http://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:1871:17
[email protected]://localhost/CrsInstrNetCore/node_modules/zone.js/dist/zone.js:584:30
Router</[email protected]://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:1866:20
Router</Router.prototype.scheduleNavigation/<@http://localhost/CrsInstrNetCore/node_modules/@angular/router//bundles/router.umd.js:1851:65
Zone</ZoneDelegate</[email protected]://localhost/CrsInstrNetCore/node_modules/zone.js/dist/zone.js:323:20
NgZoneImpl/this.inner<[email protected]://localhost/CrsInstrNetCore/node_modules/@angular/core//bundles/core.umd.js:9100:36
Zone</ZoneDelegate</[email protected]://localhost/CrsInstrNetCore/node_modules/zone.js/dist/zone.js:322:20
Zone</Zone</[email protected]://localhost/CrsInstrNetCore/node_modules/zone.js/dist/zone.js:216:25
scheduleResolveOrReject/<@http://localhost/CrsInstrNetCore/node_modules/zone.js/dist/zone.js:571:53
Zone</ZoneDelegate</[email protected]://localhost/CrsInstrNetCore/node_modules/zone.js/dist/zone.js:356:24
NgZoneImpl/this.inner<[email protected]://localhost/CrsInstrNetCore/node_modules/@angular/core//bundles/core.umd.js:9091:36
Zone</ZoneDelegate</[email protected]://localhost/CrsInstrNetCore/node_modules/zone.js/dist/zone.js:355:24
Zone</Zone</[email protected]://localhost/CrsInstrNetCore/node_modules/zone.js/dist/zone.js:256:29
[email protected]://localhost/CrsInstrNetCore/node_modules/zone.js/dist/zone.js:474:26
ZoneTask/[email protected]://localhost/CrsInstrNetCore/node_modules/zone.js/dist/zone.js:426:22
私は全くのショーに参考になるかファイルか分かりません開発環境ではすべて正常に動作しているからです。役に立つと思われるのは、私のtsconfig.jsonファイルです:
{
"compilerOptions": {
"noImplicitAny": true,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "system",
"moduleResolution": "node"
},
"exclude": [
"node_modules",
"wwwroot"
]
}
誰かがこの問題を探求し解決する方法を提案できますか?
Visual Studioで同じエラーが表示される - どうやってやったのか分かりません。どうしてこのようなエラーメッセージをデバッグするのですか? – JRS