マイ角度の2アプリは今朝まではうまく働いていました輸出が「LOCATION_INITIALIZED」「の角度/共通@」に見つかりませんでした
Unhandled Promise rejection: Token must be defined! ; Zone: <root> ; Task: Promise.then ; Value: Error: Token must be defined!
at new ReflectiveKey (reflective_key.js:36) [angular]
at KeyRegistry.get (reflective_key.js:89) [angular]
at Function.ReflectiveKey.get (reflective_key.js:54) [angular]
at ReflectiveInjector_.get (reflective_injector.js:325) [angular]
at AppModuleInjector.NgModuleInjector.get (ng_module_factory.js:140) [angular]
at RouterInitializer.appInitializer (router_module.js:303) [angular]
at new ApplicationInitStatus (application_init.js:30) [angular]
at AppModuleInjector.createInternal (/AppModule/module.ngfactory.js:597) [angular]
at AppModuleInjector.NgModuleInjector.create (ng_module_factory.js:123) [angular]
at NgModuleFactory.create (ng_module_factory.js:91) [angular]
at :8080/dist/app.bundle.js:47522:61 [angular]
at Object.onInvoke (ng_zone.js:273) [angular] Error: Token must be defined!
at new ReflectiveKey (http://localhost:8080/dist/app.bundle.js:49098:19) [angular]
at KeyRegistry.get (http://localhost:8080/dist/app.bundle.js:49151:39) [angular]
at Function.ReflectiveKey.get (http://localhost:8080/dist/app.bundle.js:49116:35) [angular]
at ReflectiveInjector_.get (http://localhost:8080/dist/app.bundle.js:130453:102) [angular]
at AppModuleInjector.NgModuleInjector.get (http://localhost:8080/dist/app.bundle.js:69771:52) [angular]
at RouterInitializer.appInitializer (http://localhost:8080/dist/app.bundle.js:82228:48) [angular]
at new ApplicationInitStatus (http://localhost:8080/dist/app.bundle.js:47099:45) [angular]
at AppModuleInjector.createInternal (/AppModule/module.ngfactory.js:597:36) [angular]
at AppModuleInjector.NgModuleInjector.create (http://localhost:8080/dist/app.bundle.js:69754:76) [angular]
at NgModuleFactory.create (http://localhost:8080/dist/app.bundle.js:69722:18) [angular]
at http://localhost:8080/dist/app.bundle.js:47522:61 [angular]
at Object.onInvoke (http://localhost:8080/dist/app.bundle.js:36376:37) angular]
consoleError @ zone.js:405
zone.js:407 Error: Uncaught (in promise): Error: Token must be defined!
Error: Token must be defined!
at new ReflectiveKey (reflective_key.js:36) [angular]
at KeyRegistry.get (reflective_key.js:89) [angular]
at Function.ReflectiveKey.get (reflective_key.js:54) [angular]
at ReflectiveInjector_.get (reflective_injector.js:325) [angular]
at AppModuleInjector.NgModuleInjector.get (ng_module_factory.js:140) [angular]
at RouterInitializer.appInitializer (router_module.js:303) [angular]
at new ApplicationInitStatus (application_init.js:30) [angular]
at AppModuleInjector.createInternal (/AppModule/module.ngfactory.js:597) [angular]
at AppModuleInjector.NgModuleInjector.create (ng_module_factory.js:123) [angular]
at NgModuleFactory.create (ng_module_factory.js:91) [angular]
at :8080/dist/app.bundle.js:47522:61 [angular]
at Object.onInvoke (ng_zone.js:273) [angular]
at new ReflectiveKey (reflective_key.js:36) [angular]
at KeyRegistry.get (reflective_key.js:89) [angular]
at Function.ReflectiveKey.get (reflective_key.js:54) [angular]
at ReflectiveInjector_.get (reflective_injector.js:325) [angular]
at AppModuleInjector.NgModuleInjector.get (ng_module_factory.js:140) [angular]
at RouterInitializer.appInitializer (router_module.js:303) [angular]
at new ApplicationInitStatus (application_init.js:30) [angular]
at AppModuleInjector.createInternal (/AppModule/module.ngfactory.js:597) [angular]
at AppModuleInjector.NgModuleInjector.create (ng_module_factory.js:123) [angular]
at NgModuleFactory.create (ng_module_factory.js:91) [angular]
at :8080/dist/app.bundle.js:47522:61 [angular]
at Object.onInvoke (ng_zone.js:273) [angular]
at resolvePromise (zone.js:486) [<root>]
at :8080/dist/polyfills.bundle.js:18027:17 [<root>]
at Zone.runTask (zone.js:151) [<root> => <root>]
at drainMicroTaskQueue (zone.js:418) [<root>]
実行時にアプリケーションがコンパイルされ、問題が発生します。私はtypescriptで角度2を使用しています。2.1.6
適切なパッケージは何ですか? – BrandonReid
ええ、パッケージの接頭辞に "〜、^"が混在していたことが判明しましたが、一部のパッケージには接頭辞がまったくありませんでした。更新後、私はパッケージのバージョンが不一致であった。だから私はすべてのバージョン番号の前に "〜"を付け、node_moduleフォルダを削除してVSを再起動しました。 –