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?