angular2
サーバーを使用してクライアント側のアプリを作成していnode.js
ます。クライアント側のアプリは完全に正常に動作しているようです。つまり、次のことを意味します。
- 私の要求はすべて適切な応答を受け取ります。
- アプリケーションがロードされ、期待どおりに動作します。
しかし、ターミナルで次のエラーが発生します。
Error: The selector "app" did not match any elements
at DomRenderer.selectRootElement (/home/mu-user/Projects/my-app/dist/server/index.js:27126:23)
at selectOrCreateRenderHostElement (/home/mu-user/Projects/my-app/dist/server/index.js:15687:32)
at AppView._View_AppComponent_Host0.createInternal (/AppModule/AppComponent/host.ngfactory.js:12:16)
at AppView.create (/home/mu-user/Projects/my-app/dist/server/index.js:50916:21)
at ComponentFactory.create (/home/mu-user/Projects/my-app/dist/server/index.js:36656:36)
at ApplicationRef_.bootstrap (/home/mu-user/Projects/my-app/dist/server/index.js:23313:40)
at /home/mu-user/Projects/my-app/dist/server/index.js:23222:89
at Array.forEach (native)
at Object.Call (/home/mu-user/Projects/my-app/node_modules/es6-shim/es6-shim.js:307:14)
at Array.forEach (/home/mu-user/Projects/my-app/node_modules/es6-shim/es6-shim.js:1313:17)
中断しないwebpack
またはhttp-server
。
問題は、なぜ私がこれに直面し、どのように解決するのかということです。