I have updated my Angular project to version 12.0.5 and Typescript version to 4.3.4 and I am having trouble compiling the project.
Currently I get the following error without having made changes to the branch:
Should not import the named export 'provinces' (imported as 'data') from default-exporting module (only default export is available soon)
This is the import
:
import { ApiService, Municipality, Province } from '../../services/api.service';
And this is how I declare the variables that depend on the import Province:
public provinces: Province[] = [];
private currentPorvince: Province;
What is the problem? Why is this happening and how can I solve it?