Ionic 6 TypeScript Path Alias Configuration

for those looking for answers (which is a little tricky round here might I add). I managed to get this working by telling babel how to interpret my aliases. I had to install babel module resolver plugin to get this to work.

module.exports = {
  presets: ['@vue/cli-plugin-babel/preset'],
  plugins: [
    [
      'module-resolver',
      {
        alias: {
          '@core': '../projects/core/src',
        },
      },
    ],
  ],
};
2 Likes