Minified es6/luxon.min.js throws 'not a function or not iterable' for valid fromISO()
Author: steve2507Created Jul 5, 2022Updated Mar 23, 2026
Labelsissue: bugissue: infrastructure
Describe the bug
- Consume https://moment.github.io/luxon/es6/luxon.min.js somewhere
- Run
DateTime.fromISO('2019-01-01T05:00:00.000') - Observe error:
TypeError: n is not a function or its return value is not iterableNote that this runs perfectly fine with the non-minified es6 version.
To Reproduce Please share a minimal code example that triggers the problem:
import { DateTime } from 'https://moment.github.io/luxon/es6/luxon.min.js';
console.log(DateTime.fromISO('2019-01-01T05:00:00.000'));Actual vs Expected behavior
- Ensure behaviour is consistent between minified and non-minified version.
- Ensure no error is thrown on valid fromISO formats (although in this case caused by the minifier).
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser: Chrome 103
- Luxon version: latest
- Your timezone: Europe/Zurich
Additional context Add any other context about the problem here.
Source: moment/luxon