I have an application, which was generated with Angular CLI v19 and uses the application builder. The application builds and works perfectly fine, however when running ng test, I get a new error:
Error: Should not import the named export 'version' (imported as 'version') from default-exporting module (only default export is available soon). I narrowed down the error to this piece of code:
import { version } from '../../package.json'; After some investigation, I found this question. It suggested some tweaks to the tsconfig.json which didn't resolve the error. However it made me realize that the error comes from webpack. Which is unexpected for me as I was under the impression that with the application builder I am no longer using webpack.
I want to use esbuild for both the production build and the unit tests, and get rid of webpack completely. How can I achieve this? I searched but didn't find anything about this in the official docs.