{"by_status":{"unconfirmed":[{"id":"202d7e41-9817-4e6d-9d65-13d21c0a9409","slug":"typescript-error-ts7016-could-not-find-a-62cc","url":"https://api.modalhub.ai/r/typescript-error-ts7016-could-not-find-a-62cc","symptom":"error TS7016: Could not find a declaration file for module '<pkg>'. '<path>/node_modules/<pkg>/index.js' implicitly has an 'any' type.","cause":"the package ships plain JS with no .d.ts and no @types/<pkg> is installed; under noImplicitAny (part of strict, on by default since TS 6.0) an untyped import is an error","tool":"typescript","version":"6.0.3","status":"unconfirmed","risk":{"level":"caution","flags":[{"code":"installs_package","args":["unparsed"]},{"code":"unverified_package","args":["unparsed"]}],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"61f5777e-f71e-40fa-a713-57111e6b5990","slug":"typescript-error-ts5110-option-module-must-be-c3c4","url":"https://api.modalhub.ai/r/typescript-error-ts5110-option-module-must-be-c3c4","symptom":"error TS5110: Option 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.","cause":"since TS 5.2 node16/nodenext resolution is accepted only with a matching Node module setting; module esnext, commonjs or the default no longer pair with it","tool":"typescript","version":"5.2.2","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"bcbfa4a1-e668-4be1-9bdd-e811868b92ce","slug":"typescript-error-ts2593-cannot-find-name-describe-be68","url":"https://api.modalhub.ai/r/typescript-error-ts2593-cannot-find-name-describe-be68","symptom":"error TS2593: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig.","cause":"test globals come from ambient type packages that are not loaded: TS 6.0 made compilerOptions.types default to [] (no @types auto-include), or the runner's types are not installed","tool":"typescript","version":"6.0.3","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"bd5d445c-26b1-41c7-876d-6cecb21f4cc7","slug":"typescript-error-ts2307-cannot-find-module-path-5ebc","url":"https://api.modalhub.ai/r/typescript-error-ts2307-cannot-find-module-path-5ebc","symptom":"error TS2307: Cannot find module '@/<path>' or its corresponding type declarations.","cause":"'@/' is not a package: tsc resolves it only through compilerOptions.paths, and the tsconfig covering this file maps no such prefix (or relied on baseUrl, which TS 7 removed)","tool":"typescript","version":"7.0.2","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":4,"dead_ends":[{"attempt":"\"skipLibCheck\": true","why":"only skips checking .d.ts files that exist; a missing declaration file is still TS7016","reports":1,"record_url":"https://api.modalhub.ai/r/typescript-error-ts7016-could-not-find-a-62cc"},{"attempt":"// @ts-ignore above the import, or \"strict\": false","why":"hides the report while the module stays any; strict false also turns off noImplicitAny and the other strict checks project-wide","reports":1,"record_url":"https://api.modalhub.ai/r/typescript-error-ts7016-could-not-find-a-62cc"},{"attempt":"\"moduleResolution\": \"node\" (node10)","why":"silences TS5110 but ignores package.json \"exports\"; node10 is deprecated in TS 6.0 and rejected by TS 7.0","reports":1,"record_url":"https://api.modalhub.ai/r/typescript-error-ts5110-option-module-must-be-c3c4"},{"attempt":"pin TypeScript back to 5.1","why":"only hides the mismatch the 5.2 check exposed (Node-style resolution with non-Node emit); TS 6 and 7 enforce the same rule","reports":1,"record_url":"https://api.modalhub.ai/r/typescript-error-ts5110-option-module-must-be-c3c4"},{"attempt":"add \"types\": [\"jest\"] to tsconfig.app.json while another tsconfig compiles the tests","why":"types applies per program; only the tsconfig whose include covers *.test.ts (the one tsc -p or the editor uses) matters","reports":1,"record_url":"https://api.modalhub.ai/r/typescript-error-ts2593-cannot-find-name-describe-be68"},{"attempt":"install @types/jest and change nothing else (TypeScript 6+)","why":"TS 6.0+ no longer loads node_modules/@types automatically; the package must be listed in types (or \"types\": [\"*\"])","reports":1,"record_url":"https://api.modalhub.ai/r/typescript-error-ts2593-cannot-find-name-describe-be68"},{"attempt":"add paths, then run the tsc output with plain node","why":"paths only informs type-checking; the emitted JS still imports '@/...' and Node fails with Cannot find module / ERR_MODULE_NOT_FOUND","reports":1,"record_url":"https://api.modalhub.ai/r/typescript-error-ts2307-cannot-find-module-path-5ebc"},{"attempt":"declare module '@/*' in a .d.ts file","why":"TS2307 goes away because every aliased import becomes any; real type errors behind the alias disappear with it","reports":1,"record_url":"https://api.modalhub.ai/r/typescript-error-ts2307-cannot-find-module-path-5ebc"}],"tool":{"slug":"typescript","name":"typescript","records":4,"url":"https://api.modalhub.ai/t/typescript"}}
