After attempting to import supercluster in TypeScript, I encountered the following error. Any helpful insights would be appreciated.
ExceptionsManager.js:86 TypeError: Cannot set property 'options' of undefined
This error is located at:
in App (at renderApplication.js:40)
in RCTView (at View.js:35)
in View (at AppContainer.js:98)
in RCTView (at View.js:35)
in View (at AppContainer.js:115)
in AppContainer (at renderApplication.js:39)
Update:
An exception (alert shown in iOS simulator) occurred when the program executed the following function.
const cluster = supercluster({
radius: 40,
maxZoom: 16,
});