Problem
TypeScript 6.0 (shipped in Deno v2.8.3) changed export = in ESM context from a warning (TS1203) to a hard error (TS1192). This causes deno check to fail when importing @tailwindcss/postcss.
Root Cause
@tailwindcss/postcss@4.1.16's package.json declares ESM support via exports.import, but the type declarations in dist/index.d.ts use CJS syntax:
declare const _default: PluginCreator<PluginOptions>;
export = _default; // CJS, not ESM export default
With moduleResolution: NodeNext, TS 6.0 sees exports.import -> treats .d.ts as ESM -> export = in ESM -> TS1192 error.
Reproduce
Reproducible against stock tsc with NodeNext resolution.
Suggested Fix
Change export = _default to export default _default to match the exports.import ESM declaration.
Problem
TypeScript 6.0 (shipped in Deno v2.8.3) changed
export =in ESM context from a warning (TS1203) to a hard error (TS1192). This causesdeno checkto fail when importing@tailwindcss/postcss.Root Cause
@tailwindcss/postcss@4.1.16'spackage.jsondeclares ESM support viaexports.import, but the type declarations indist/index.d.tsuse CJS syntax:With
moduleResolution: NodeNext, TS 6.0 seesexports.import-> treats.d.tsas ESM ->export =in ESM -> TS1192 error.Reproduce
Reproducible against stock
tscwith NodeNext resolution.Suggested Fix
Change
export = _defaulttoexport default _defaultto match theexports.importESM declaration.