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
I would like to use it like import categorizr from 'categorizr';
or const categorizr = require( 'categorizr' );
when installed via NPM.
But I always get told that I'm on mobile.
After some investigation I noticed that the context is an Empty Object and not window.
Known issue or did I make something wrong?
The text was updated successfully, but these errors were encountered:
Not known, but this project isn’t maintained. What bundler are you using? I’d guess that the modules this property is being set/wiped out in an odd way by your bundler. This is using a UMD pattern for exporting itself which may be outdated or incorrect now.
Idk, I’d start off just following that trail a little bit further to see how webpack loads it and probably just configuring it accordingly. Alternatively a PR for updating the export method would be okay, too.
I would like to use it like
import categorizr from 'categorizr';
or
const categorizr = require( 'categorizr' );
when installed via NPM.
But I always get told that I'm on mobile.
After some investigation I noticed that the context is an Empty Object and not
window
.Known issue or did I make something wrong?
The text was updated successfully, but these errors were encountered: