Webpack resolve.alias cannot find module Cannot find module

the project structure is as follows:

import sign from "common/utils/sign";

console.log(sign("hello"));

webpack.config.js configure alias

resolve: {
    alias: {
        common: "../common"
    }
}

error when starting app project:

ERROR in [at-loader] ../common/utils/sign:1:1 
    TS2307: Cannot find module "md5".

if the alias configured below is not under the current project, how to configure node_modules.
if I install dependencies in the common project, webpack will repeat the files in common/node_modules when packaging.
what should I do with this situation?


md5 should be a third-party library, which has nothing to do with alias. It should be npm install md5


what is your directory structure

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf6f85-1457d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf6f85-1457d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?