-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE8 problems #240
Comments
hi! how are you including moment-range in your app? and are you using a build system? |
No, there is no build system for client-side code in this project. File moment-range.js was downloaded from CDN and included as <script/> tag. |
@indvd00m Are you including the files as follows? <script src="CDN for moment.js"></script>
<script src="CDN for moment-range.js"></script>
<script>
window['moment-range'].extendMoment(moment);
// ...
</script> |
Yes, all included in accordence with documentation. Just open the file from first comment in this issue, line 137: function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } This is same problem as here, for example: martinandert/counterpart#6 As a temporary solution I escaped "default" and "for" fields with quotes when them declared, and replace |
File moment-range.js contains objects fields with name "default" and "for". This is broke working of moment-range in Internet Explorer 8 because of IE treat this fields as keywords.
The text was updated successfully, but these errors were encountered: