DEV Community

Discussion on: Resolving path alias in nestjs projects

Collapse
 
durchanek profile image
Láďa Durchánek • Edited

The first solution worked for me like this:

const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');

module.exports = {
  webpack(config) {
    config.resolve.plugins.push(new TsconfigPathsPlugin());
    return config;
  },
};
Collapse
 
rubiin profile image
Rubin

thanks for sharing