在纱线内有什么方法可以跳过起重机?

发布于 2025-01-26 02:41:35 字数 998 浏览 4 评论 0原文

最近,我将节点版本更新为16+。在此之前,我能够触发YARN构建命令来创建项目的构建。

但是,在安装节点16+之后,纱线构建命令正在抛出以下错误

./lib/view-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/wishlist/dist/lib/modules/wishlist-items/wishlist-items.view.js' in 'H:\source\D365_eCommerce\lib'
 @ ./lib/view-registration.js 5:112769-113063
 @ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
 @ multi ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js ./node_modules/@msdyn365-commerce/bootloader/entry/client

,似乎正在尝试从吊装文件夹中选择该模块。

我是这个概念的新手,所以不知道为什么它针对此文件夹,尽管它应该从'@msdyn365-commerce-modules/wishlist/dist/dist/lib/lib/postlist-items/wishlist选择该模块。 -Items.view.js'

任何解释都将不胜感激。

我如何将其强加于 直接从提起文件夹中选择模块,并使用'@msdyn365-commerce-modules/wishlist/wishlist/dist/dist/lib/modules/modules/modules/ wishlist-items/wishlist-items.view.js'直接

感谢, 阿曼

Recently I have updated the node version to 16+. Prior to that, I was able to trigger the yarn build command to create the build of my project.

But after installation of node 16+, the yarn build command is throwing the following errors

./lib/view-registration.js
Module not found: Error: Can't resolve 'hoisted/@msdyn365-commerce-modules/wishlist/dist/lib/modules/wishlist-items/wishlist-items.view.js' in 'H:\source\D365_eCommerce\lib'
 @ ./lib/view-registration.js 5:112769-113063
 @ ./node_modules/@msdyn365-commerce/bootloader/entry/client.js
 @ multi ./node_modules/@msdyn365-commerce/bootloader/entry/webpack-public-path.js ./node_modules/@msdyn365-commerce/bootloader/entry/client

It seems like it is trying to pick the module from the hoisted folder.

I am new to this concept so have no idea why it is targeting this folder in spite of this it should pick the module from '@msdyn365-commerce-modules/wishlist/dist/lib/modules/wishlist-items/wishlist-items.view.js' directly.

Any explanation would be appreciated.

How can I force it to not pick the module directly from the hoisted folder and use '@msdyn365-commerce-modules/wishlist/dist/lib/modules/wishlist-items/wishlist-items.view.js' directly

Thanks,
Aman

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

鹿! 2025-02-02 02:41:35

此问题主要是由于节点的损坏版本而发生的。
唯一可能的解决方案是确保还安装了节点(16+)所需的所有依赖关系。

我们可以手动下载所有依赖项,或者只需要允许节点本身在安装时下载所有依赖项即可。

谢谢,
阿曼

This issue mainly occurred due to the corrupt version of Node.
The only possible solution for this is to make sure that all the dependencies required for Node (16+) are also installed.

We can either download all the dependencies manually or just need to allow the node itself to download all the dependencies at the time of installation.

enter image description here

Thanks,
Aman

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