添加斯巴达克斯原理图时会出现错误
我试图将斯巴达克斯与SAP Commerce Cloud整合在一起。 我正在YouTube上关注一个视频,PFB的步骤
- ng新的spartacusdemostore -styles = scss
- ng add @spartacus/schematics @最新的,
但是在执行第二步时,我会遇到以下错误。任何人都可以帮我吗?
ES模块C的 require()c:\ hybris \ spartacusdemo \ spartacusdemostore \ node_modules@angular \ compiler \ compiler \ fesm2015 \ compiler.mj不支持。 取而代之的是更改C:\ hybris \ spartacusdemo \ spartacusdemostore \ node_modules@angular \ compiler \ compiler \ fesm2015 \ compiler.mjs to dynamic import(
) //i.sstatic.net/9xwat.png“ rel =“ nofollow noreferrer”>请找到我收到的错误,
请提前感谢!
I was trying to integrate Spartacus with the SAP Commerce cloud.
i was following a video in youtube, PFB the steps
- ng new spartacusdemostore --styles=scss
- ng add @spartacus/schematics@latest
But while executing the 2nd step, i am getting the below error. Can anyone help me on this.
require() of ES Module C:\Hybris\SpartacusDemo\spartacusdemostore\node_modules@angular\compiler\fesm2015\compiler.mjs not supported.
Instead change the require of C:\Hybris\SpartacusDemo\spartacusdemostore\node_modules@angular\compiler\fesm2015\compiler.mjs to a dynamic import() which is available in all CommonJS modules.
Please find the Error i am getting
Thanks in Advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
截至写作时,最新的原理图用
4.3.4
标记,它将在指定版本的示意图交互期间选择Spartacus的所有软件包。正如Spartacus的官方文档中所述,它提到任何4.x的Spartacus版本都需要使用Angular 12。将来将使用5.x发货。
总而言之,请在再次运行原理图之前将您的Angular版本降级到Angular 12
As of writing, the latest schematics is tagged with
4.3.4
, which will pull all packages for Spartacus which you opted in for during the schematics interaction for the specified version.As stated in the official docs for Spartacus, it mentions that any Spartacus version for 4.x needs to use Angular 12. Moreover, as you pointed out, PR #15273 was a change to adhere to Angular 13, which still has not been released as it will be shipped with 5.x in the future.
All in all, please downgrade your Angular version to Angular 12 before running schematics again