Fork me on GitHub
#shadow-cljs
<
2022-01-26
>
andrea.crotti15:01:42

we use ag-grid, and specifically this function https://github.com/ag-grid/ag-grid/blob/f1504fe5adb0a91f4658658bdd6aa591ed2f1864/community-modules/core/src/ts/utils/dom.ts#L239 which recently moved from one namespace to the other

andrea.crotti15:01:42

I tried all the possible ways I could think of to require it but I can't seem to crack the enigma, any idea? The function itself is also available directly in the node_modules/ag-grid-enterprise/ag-grid.js for example, but either that or trying to use the full path doesn't work

thheller17:01:51

@andrea.crotti do you have an example of JS using this? regarding locating exported functions never look at the source on github. that is the raw source and usually has very little to do with the final bundled result.

andrea.crotti19:01:33

Yeah I figured that it's pointless to look at the source

andrea.crotti19:01:42

I'll see if I find an example of js using it

thheller11:01:08

how did you use it before? I mean it should be possible to reconstruct it based on where it moved from and what it was called before

andrea.crotti13:01:30

in the end I just rewrote that function in cljs

andrea.crotti13:01:38

since it was literally 3 lines of code

andrea.crotti13:01:47

so it doesn't break again next time ag-grid move it again

Ben Hammond22:01:30

I have two browsers loading my shadow-cljs managed webpage I am using npx shadow-cljs cljs-repl foo` to connect to one of them. Is there an easy way to swith to a repl on the other browser?