You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The real problem is that both typeof exports and typeof module are undefined, so I cannot import the library this way as expected: import tko from "..../build.reference.es6.js"
Still struggling to load tko in an ES module.
I have installed
@tko/build.reference
.Then in my module I import it this way:
But Chrome on Windows answers with:
The same happens if I load
build.reference.es6.js
Anyway, if you edit the file (
build.reference*.js
) and at line 10 changeglobal
intoglobalThis
the error disappears.Done this dirty fix, and overcoming some Typescript peculiarity, seems TKO works.
Thanks for continued support to this wonderful library!
mario
The text was updated successfully, but these errors were encountered: