SAP Spartacus 3.0部署在development environment上
https://github.com/SAP-samples/cloud-commerce-sample-setup/tree/2011-spartacus
啟動Spartacus,遇到錯誤消息:
NullInjectorError: R3InjectorError(AppServerModule)[ApplicationModule -> ApplicationRef -> ApplicationInitStatus -> InjectionToken Application Initializer -> [object Object] -> InjectionToken ConfigInitializer -> [object Object] -> spartacus_core_OccConfigLoaderService -> InjectionToken SERVER_REQUEST_URL -> InjectionToken SERVER_REQUEST_URL -> InjectionToken SERVER_REQUEST_URL -> InjectionToken REQUEST]:
NullInjectorError: No provider for InjectionToken REQUEST!
解決方法
In the mean time could you check in your storefront’s “package.json” file. You should see a dependency named “@nguniversal/express-engine” and a devDependency named “@nguniversal/builders”. They are most likely both on version “^9.1.0”. Can you try changing them both to “^10.1.0” and push those changes to your release branch. You will then need to create a new build and deployment.That should resolve the issue.
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的SAP Spartacus 3.0部署在development environment上的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 关于Angular使用http发送请求后
- 下一篇: 如何知道自己飞机飞行记录 航旅纵横查飞行