0

我正在尝试自定义 webpack 配置。在某些情况下,我使用别名来缩短我的 URL 声明和外部,例如:jQuery,...

但是,当我导入/要求时,节点一直告诉我“找不到模块”。

(node:9684) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot find module 'Component/home' 
(node:9684) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

我的自定义 webpack 配置文件

在此处输入图像描述

在我的组件中导入

4

0 回答 0