canirequire › No JS entry point › type-fest
Is type-fest ESM-only? Can you require() it?
A collection of essential TypeScript types
Last verified Sep 9, 2026 against type-fest@5.9.0. JSON
No JS entry point No JavaScript entry point
type-fest does not expose a JavaScript entry point in package.json. It is likely a CLI, a stylesheet, a type-definition package, or an asset bundle, so require() and import are not the way to use it.
Does type-fest@5.9.0 actually load? Runtime test results
Installed and executed on Sep 9, 2026 with require("type-fest") from a CommonJS file and import "type-fest" from an ES module.
| Runtime | require("type-fest") | import "type-fest" |
|---|---|---|
| Node.js 18 | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED |
| Node.js 20 | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED |
| Node.js 22 | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED |
| Node.js 24 | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED |
| Node.js 26 | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED | ✗ failsERR_PACKAGE_PATH_NOT_EXPORTED |
| Bun 1.4 | ✗ failserror: Cannot find package 'type-fest' from '/Users/boat/Projects/top-seo/data/probe-work/type-fest/req.cjs' | ✗ failserror: Cannot find package 'type-fest' from '/Users/boat/Projects/top-seo/data/probe-work/type-fest/imp.mjs' |
A failing require() on a CommonJS package usually means the package needs a browser/DOM global, a peer dependency, or a native binary that is not available in a bare Node.js process.
How to import type-fest
ES modules (import)
import typeFest from "type-fest";CommonJS (require)
Not applicable.
Module format by version
Derived from the type, main and exports fields of every stable release on npm (193 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 5.0.0 – 5.9.0 | No JS entry point | Sep 13, 2025 |
| 4.13.0 – 4.41.0 | CommonJS | Mar 19, 2024 |
Frequently asked
Is type-fest ESM-only?
type-fest@5.9.0 has no importable main entry. type-fest does not expose a JavaScript entry point in package.json. It is likely a CLI, a stylesheet, a type-definition package, or an asset bundle, so require() and import are not the way to use it.
Does type-fest work in Bun?
Importing type-fest failed in Bun 1.4 on Sep 9, 2026: error: Cannot find package 'type-fest' from '/Users/boat/Projects/top-seo/data/probe-work/type-fest/imp.mjs'
Does type-fest ship TypeScript types?
Yes. type-fest bundles its own type declarations; no @types package is needed.
Links
Other no js entry point packages
- eslint-config-next 16.3.4No entry
- storybook 10.6.0No entry
- @storybook/addon-docs 10.6.0No entry
- @storybook/addon-a11y 10.6.0No entry
- eslint-plugin-storybook 10.6.0No entry
- tsup 8.5.1No entry
- typedoc 0.28.20No entry
- normalize.css 8.0.1No entry
Similar popularity
- glob 13.0.6Dual
- string-width 8.2.2ESM-only
- ansi-regex 6.3.0ESM-only
- eslint-visitor-keys 5.0.1Dual
- ajv 8.20.0CommonJS
- source-map 0.8.0CommonJS
- escape-string-regexp 5.0.0ESM-only
- react-is 19.2.8CommonJS