pellepim / jstimezonedetect

Other
83 stars 13 forks source link

Problems upgrading to 1.0.7 with Yarn and RequireJS #7

Open crmpicco opened 4 years ago

crmpicco commented 4 years ago

I am using RequireJS to manage my JS modules and I am having a tough time trying to update from 1.0.5 to 1.0.7.

This is my change to config.js:

-       jstz: '/app/assets/vendor/jstimezonedetect/jstz',
+       jstz: '/app/assets/vendor/jstimezonedetect/dist/jstz.min',

When I try to reference jstz in the code I get the following error:

ReferenceError: "jstz is not defined"

This is my calling code:

        var timezone = jstz.determine();
        timeZoneField.val(timezone.name());

Are there any other steps to upgrading or am I missing something?