添加斯巴达克斯原理图时会出现错误

发布于 2025-02-04 19:33:45 字数 600 浏览 3 评论 0原文

我试图将斯巴达克斯与SAP Commerce Cloud整合在一起。 我正在YouTube上关注一个视频,PFB的步骤

  1. ng新的spartacusdemostore -styles = scss
  2. 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

  1. ng new spartacusdemostore --styles=scss
  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

翻了热茶 2025-02-11 19:33:45

截至写作时,最新的原理图用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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文