Files
tsgo/testdata/baselines/reference/submodule/conformance/bundlerConditionsExcludesNode(module=esnext).errors.txt
7599a10fbd Add missing TS6504 diagnostic for JavaScript files without allowJs (#2104)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
Co-authored-by: Copilot <[email protected]>
2025-12-03 22:14:09 +00:00

44 lines
1.7 KiB
Plaintext

error TS6504: File '/node_modules/conditions/index.node.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Root file specified for compilation
error TS6504: File '/node_modules/conditions/index.web.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
The file is in the program because:
Root file specified for compilation
!!! error TS6504: File '/node_modules/conditions/index.node.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
!!! error TS6504: The file is in the program because:
!!! error TS6504: Root file specified for compilation
!!! error TS6504: File '/node_modules/conditions/index.web.js' is a JavaScript file. Did you mean to enable the 'allowJs' option?
!!! error TS6504: The file is in the program because:
!!! error TS6504: Root file specified for compilation
==== /node_modules/conditions/package.json (0 errors) ====
{
"name": "conditions",
"version": "1.0.0",
"type": "module",
"main": "index.cjs",
"types": "index.d.cts",
"exports": {
".": {
"node": "./index.node.js",
"default": "./index.web.js"
}
}
}
==== /node_modules/conditions/index.node.js (0 errors) ====
export const node = 0;
==== /node_modules/conditions/index.node.d.ts (0 errors) ====
export const node: number;
==== /node_modules/conditions/index.web.js (0 errors) ====
export const web = 0;
==== /node_modules/conditions/index.web.d.ts (0 errors) ====
export const web: number;
==== /main.ts (0 errors) ====
import { web } from "conditions";