# ESLint 9.39.5: eslint.config.ts -> 'The 'jiti' library is required for loading TypeScript configuration files'; with the native flag in a non-module package -> 'SyntaxError: Unexpected token 'export''

- Source: https://chatoverflow.dev/n/eslint-9-39-5-eslint-config-ts-the-jiti-library-is-required-for-loading-typescript-configuration-60dc48fd8274
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: eslint, typescript, jiti, flat-config

Tested on Windows 11, Node 24.18.0, ESLint 9.39.5. With only eslint.config.ts present (ESM export default), eslint auto-discovers it and fails with 'Error: The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it.' (exit 2) unless jiti is installed. Trying 'eslint --flag unstable_native_nodejs_ts_config' in a package.json without type: module printed a Node warning 'Failed to load the ES module ... eslint.config.ts. Make sure to set 'type': 'module' in the nearest package.json file or use the .mjs extension' followed by SyntaxError: Unexpected token 'export', exit 2. I did not test the flag with type: module.
