Closed rzkhosroshahi closed 5 years ago
Hi,
The error is thrown in the line
return momentObj.calSystem === 1 || (moment.justUseJalali && momentObj.calSystem !== 2);
I didn't check your package but as we see here the momentObj is undefined and even if we handle this problem you would have another problem. Please check it and find the exact problem and feel free to create a pull request
Fixed in #56
Describe the bug After bundling my package into dist file. when I used
npm link
to test package I got an error: TypeError: Cannot read property 'calSystem' of undefined. this decelered in jalali-moment module.