{"id":24552665,"url":"https://github.com/itsfarseen/ts-node-repro","last_synced_at":"2025-03-16T14:14:21.111Z","repository":{"id":133436238,"uuid":"393692764","full_name":"itsfarseen/ts-node-repro","owner":"itsfarseen","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-07T13:59:31.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-08T21:11:23.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsfarseen.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-07T13:34:59.000Z","updated_at":"2023-03-04T09:24:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"48b085a0-4940-4fb9-8660-dc256c7f4039","html_url":"https://github.com/itsfarseen/ts-node-repro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsfarseen%2Fts-node-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsfarseen%2Fts-node-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsfarseen%2Fts-node-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsfarseen%2Fts-node-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsfarseen","download_url":"https://codeload.github.com/itsfarseen/ts-node-repro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878491,"owners_count":20362433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-23T01:32:37.293Z","updated_at":"2025-03-16T14:14:21.105Z","avatar_url":"https://github.com/itsfarseen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TS Node Repro\n\n## Issue\n.d.ts files are ignored when `allowJs \u0026\u0026 checkJs`\nWorks fine when either of them are set to false.\n\n## Run\n\n```bash\ncd ./myapp-bar\nyarn tsc # produces no error\nnode --loader ts-node/esm main.ts # errors\n```\n\n## Error shown\n\n```\n(node:700514) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time\n(Use `node --trace-warnings ...` to show where the warning was created)\n\n/home/farseen/Projects/97.Temp/ts-node-types/node_modules/ts-node/src/index.ts:618\n    return new TSError(diagnosticText, diagnosticCodes);\n           ^\nTSError: ⨯ Unable to compile TypeScript:\n../myapp-foo/dist/foo.js:1:23 - error TS7031: Binding element 'foo' implicitly has an 'any' type.\n\n1 export function foo({ foo }) {\n                        ~~~\n\n    at createTSError (/home/farseen/Projects/97.Temp/ts-node-types/node_modules/ts-node/src/index.ts:618:12)\n    at reportTSError (/home/farseen/Projects/97.Temp/ts-node-types/node_modules/ts-node/src/index.ts:622:19)\n    at getOutput (/home/farseen/Projects/97.Temp/ts-node-types/node_modules/ts-node/src/index.ts:809:36)\n    at Object.compile (/home/farseen/Projects/97.Temp/ts-node-types/node_modules/ts-node/src/index.ts:1111:30)\n    at /home/farseen/Projects/97.Temp/ts-node-types/node_modules/ts-node/src/esm.ts:146:38\n    at Generator.next (\u003canonymous\u003e)\n    at /home/farseen/Projects/97.Temp/ts-node-types/node_modules/ts-node/dist/esm.js:8:71\n    at new Promise (\u003canonymous\u003e)\n    at __awaiter (/home/farseen/Projects/97.Temp/ts-node-types/node_modules/ts-node/dist/esm.js:4:12)\n    at transformSource (/home/farseen/Projects/97.Temp/ts-node-types/node_modules/ts-node/dist/esm.js:88:16)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsfarseen%2Fts-node-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsfarseen%2Fts-node-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsfarseen%2Fts-node-repro/lists"}