Can't use alias and externals with Electrode custom webpack configuration

127 views Asked by At

I am trying to customize the webpack configuration. I am using alias to shorten my URL declaration and externals for some cases such as: jQuery,...

However, when I import/require, node keeps telling me that "Cannot find module".

(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.

my custom webpack configuration file

enter image description here

import in my component

0

There are 0 answers