在纱线内有什么方法可以跳过起重机?
最近,我将节点版本更新为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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此问题主要是由于节点的损坏版本而发生的。
唯一可能的解决方案是确保还安装了节点(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.
Thanks,
Aman