mapdeck icon indicating copy to clipboard operation
mapdeck copied to clipboard

`globalThis` undefined

Open dcooley opened this issue 3 years ago • 0 comments

in deck.gl 6407 deck.gl replaced global with globalThis.

Rstudio doesn't appear to like this and can't find globalThis.


I don't know if this is correct, but this solution at the top of mapdeck.js seems to solve it. But I have no idea of the downstream consequences

if( typeof globalThis === 'undefined') {
	var globalThis = window;
}
  • [ ] Replace all window calls with globalThis ?

dcooley avatar May 24 '22 02:05 dcooley