I am trying to connect Ionic Vue up to an existing MonoRepo with some vue projects and many raw TypeScript projects that include our business code/services etc.
I would like to configure Ionic Vue to use our TypeScript path aliases e.g.
tsconfig.json
"paths": {
"@/*": [
"./src/*"
],
"@core/*": ["../projects/core/src/*"],
}
I have done this but get the error:
Module not found: Error: Can't resolve '@core/error/CustomError' in 'D:\dev\repo\myApp\src\views'
To get this to work with vite and webpack in web projects we usually have to define our aliases in their configs e.g.
vite.config.js
resolve: {
extensions: ['.tsx', '.ts', '.js', '.json', '.mjs'],
alias: {
'@core': path.resolve(__dirname, '../core/src'),
}
how do I gain access to the build config and subsequently modify it for a vue Ionic project?