canirequire › ESM-only › jest-watch-typeahead
Is jest-watch-typeahead ESM-only? Can you require() it?
Jest plugin for filtering by filename or test name
Last verified Sep 9, 2026 against jest-watch-typeahead@3.0.1. JSON
ESM-only ESM-only since 1.0.0 — last CommonJS version is 0.6.5
jest-watch-typeahead dropped its CommonJS build in 1.0.0 (September 2021). The last version you can require() on every Node.js version, including 18 and older, is 0.6.5, published Sep 28, 2021.
require("jest-watch-typeahead") failed in our probe on Node.js 20+ as well. See the runtime matrix below for the exact error.
Does jest-watch-typeahead@3.0.1 actually load? Runtime test results
Installed and executed on Sep 9, 2026 with require("jest-watch-typeahead") from a CommonJS file and import "jest-watch-typeahead" from an ES module.
| Runtime | require("jest-watch-typeahead") | import "jest-watch-typeahead" |
|---|---|---|
| Node.js 18 | ✗ failsERR_REQUIRE_ESM | ✗ failsError: |
| Node.js 20 | ✗ failsError: | ✗ failsError: |
| Node.js 22 | ✗ failsError: | ✗ failsError: |
| Node.js 24 | ✗ failsError: | ✗ failsError: |
| Node.js 26 | ✗ failsError: | ✗ failsError: |
| Bun 1.4 | ✗ failserror: | ✗ failserror: |
How to import jest-watch-typeahead
ES modules (import)
import jestWatchTypeahead from "jest-watch-typeahead";CommonJS (require)
// Node.js 20.19+ / 22.12+ / newer (package has no top-level await):
const jestWatchTypeahead = require("jest-watch-typeahead");
// Any Node.js version:
const jestWatchTypeahead = await import("jest-watch-typeahead");
// Or pin the last CommonJS release:
// npm install jest-watch-typeahead@0.6.5Module format by version
Derived from the type, main and exports fields of every stable release on npm (26 versions; the newest 26 shown).
| Versions | Format | First published |
|---|---|---|
| 1.0.0 – 3.0.1 | ESM-only | Sep 29, 2021 |
| 0.0.1 – 0.6.5 | CommonJS | May 29, 2018 |
Frequently asked
Is jest-watch-typeahead ESM-only?
jest-watch-typeahead@3.0.1 is ESM-only. jest-watch-typeahead dropped its CommonJS build in 1.0.0 (September 2021). The last version you can require() on every Node.js version, including 18 and older, is 0.6.5, published Sep 28, 2021.
Which version of jest-watch-typeahead still supports CommonJS / require()?
0.6.5 is the last version of jest-watch-typeahead with a CommonJS build. Install it with "npm install jest-watch-typeahead@0.6.5". Every version from 1.0.0 on is ESM-only.
How do I use jest-watch-typeahead from a CommonJS file?
Use a dynamic import: const mod = await import("jest-watch-typeahead"). On Node.js 20.19+, 22.12+ and newer, a plain require("jest-watch-typeahead") also works for ESM packages that do not use top-level await. Alternatively pin jest-watch-typeahead@0.6.5.
Does jest-watch-typeahead work in Bun?
Importing jest-watch-typeahead failed in Bun 1.4 on Sep 9, 2026: error:
Does jest-watch-typeahead ship TypeScript types?
No. jest-watch-typeahead ships no type declarations and there is no @types package for it.
Links
Other esm-only packages
- ansi-styles 7.0.0last CJS
5.2.0 - strip-ansi 7.2.0last CJS
6.0.1 - commander 15.0.0last CJS
14.0.3 - supports-color 11.0.0last CJS
8.1.1 - chalk 6.0.0last CJS
4.1.2 - tslib 2.8.1last CJS
2.5.2 - string-width 8.2.2last CJS
4.2.3 - ansi-regex 6.3.0last CJS
5.0.1
Similar popularity
- resolve-url-loader 5.0.0CommonJS
- simple-git 3.36.0Dual
- react-icons 5.7.0Dual
- css-minimizer-webpack-plugin 8.0.0CommonJS
- file-loader 6.2.0CommonJS
- vinyl 3.0.1CommonJS
- less 4.9.1Dual
- nyc 18.0.0CommonJS