-
Notifications
You must be signed in to change notification settings - Fork 86
NodeJs: Regions is not defined (in strict_mode) #18
Comments
I found out, that strict_mode causes this error. |
There are several variable declarations missing. |
@MartinLoeper are you planning to do a pull request to get your changes into this upstream repo (and thus, hopefully, into the NPM module)? I'd love to get these strict/minification issues resolved in the module to get my build working with less fuss. For me, I had to move that variable declaration out to the top module scope to avoid minification errors. (bjhewitt@388ec0a#diff-5ecd2a99d029816f5c37fce3481f99bd) |
I provided the PR =) |
Thanks. I'm bundling and minifying numerous components together, so although moment-holiday is generating the error, it's possible there's something else at play. In any case, moving the variable declaration worked. |
Hi, I'm getting the following error:
Any idea why this is happening?
I'm using NodeJs v8.4.0 on AWS with typescript compiler.
The library is included as follows:
The text was updated successfully, but these errors were encountered: