'Why is proj4 undefined?

I use proj4 in nestjs, the proj4 version is 2.7.2 and I also have @types/proj4 in version 2.5.0.

For some reason I use: import proj4 from 'proj4' and I call the method proj4(fromProjection, toProjection, coordinates) and it is not working, after some debugging I used console.log to print proj4 and found it is undefined, what do I do wrong?

thanks ahead



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source