I am testing out the new ES Modules option in 4.19 by migrating one of my apps from ESRI Loader to ES Modules. The app uses React and was created using Create React App.
I am having issues importing the "projection" module. For example if I try to import it as below I get a compile time error:
import projection from "@arcgis/core/geometry/projection";
// Failed to compile.
// ./src/map/MainMap.tsx
// Attempted import error: '@arcgis/core/geometry/projection' does not contain a default export (imported as 'projection').
Additional version info:
"react": "^17.0.0",
"react-scripts": "4.0.3",
"typescript": "^3.7.5"
How should I import this module?