在过去的几天里,我一直在努力使Angular 5 SSR投入运行,但是我目前仍停留在以下节点抛出的错误上,我不知道它可能指向什么。 dist和dist-server捆绑包都可以正常构建,没有错误。任何帮助将不胜感激。
Error: StaticInjectorError(u)[REQUEST]:
StaticInjectorError(Platform: core)[REQUEST]:
NullInjectorError: No provider for REQUEST!
at _NullInjector.get (/var/www/sites/mic_v5/node_modules/@angular/core/bundles/core.umd.js:1041:19)
at resolveToken (/var/www/sites/mic_v5/node_modules/@angular/core/bundles/core.umd.js:1339:24)
at tryResolveToken (/var/www/sites/mic_v5/node_modules/@angular/core/bundles/core.umd.js:1281:16)
at StaticInjector.get (/var/www/sites/mic_v5/node_modules/@angular/core/bundles/core.umd.js:1149:20)
at resolveToken (/var/www/sites/mic_v5/node_modules/@angular/core/bundles/core.umd.js:1339:24)
at tryResolveToken (/var/www/sites/mic_v5/node_modules/@angular/core/bundles/core.umd.js:1281:16)
at StaticInjector.get (/var/www/sites/mic_v5/node_modules/@angular/core/bundles/core.umd.js:1149:20)
at resolveNgModuleDep (/var/www/sites/mic_v5/node_modules/@angular/core/bundles/core.umd.js:10934:25)
at _createClass (/var/www/sites/mic_v5/node_modules/@angular/core/bundles/core.umd.js:10975:68)
at _createProviderInstance$1 (/var/www/sites/mic_v5/node_modules/@angular/core/bundles/core.umd.js:10945:26)