librelist archives

« back to archive

Issue with momentjs in non-amd approach

Issue with momentjs in non-amd approach

From:
ajinkya chhatre
Date:
2015-09-14 @ 11:08
Greetings JC,

I recently upgraded from 0.9.1 to 0.9.4 and started getting errors with
moment-with-locales.js
With the non-amd approach to load converse and after minification of
scripts moment-with-locales.js gives error saying:
*nn.month* is not a function and since it doesn't load, converse is
undefined.

If I use moment-with-langs.js that was used in 0.9.1, things are working
properly.

Best regards,
Ajinkya D. Chhatre | UI/UX Developer,
*Cell*: 091-8055744567, 091-8087791959
*LinkedIn*: http://www.linkedin.com/in/ajinkyachhatre
<http://www.linkedin.com/in/ajinkyachhatre>

Re: [conversejs] Issue with momentjs in non-amd approach

From:
Jc Brand
Date:
2015-09-22 @ 08:45
Hi Ajinkya

I did a grep in the converse.js repo (with dependencies installed) and the
string "nn.month" doesn't appear anywhere.

You must be using code that's gone through a minifier/uglifier.

JC

On Mon, Sep 14, 2015 at 04:38:01PM +0530, ajinkya chhatre wrote:
>    Greetings JC,
> 
>    I recently upgraded from 0.9.1 to 0.9.4 and started getting errors with
>    moment-with-locales.js
>    With the non-amd approach to load converse and after minification of
>    scripts moment-with-locales.js gives error saying:
>    nn.month is not a function and since it doesn't load, converse is
>    undefined.
> 
>    If I use moment-with-langs.js that was used in 0.9.1, things are working
>    properly.
>    Best regards,
>    Ajinkya D. Chhatre | UI/UX Developer,
>    Cell: 091-8055744567, 091-8087791959
>    LinkedIn: [1]http://www.linkedin.com/in/ajinkyachhatre
> 
> References
> 
>    Visible links
>    1. http://www.linkedin.com/in/ajinkyachhatre