{"id":21871750,"url":"https://github.com/ericmorand/rollup-plugin-typescript-issue-2","last_synced_at":"2026-04-10T06:55:29.276Z","repository":{"id":212830000,"uuid":"732408334","full_name":"ericmorand/rollup-plugin-typescript-issue-2","owner":"ericmorand","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-26T11:46:47.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T17:11:17.570Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ericmorand.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":"2023-12-16T15:22:14.000Z","updated_at":"2023-12-16T15:23:30.000Z","dependencies_parsed_at":"2025-01-26T17:10:41.531Z","dependency_job_id":"72164656-d72a-4c86-9b8a-7070fee7947d","html_url":"https://github.com/ericmorand/rollup-plugin-typescript-issue-2","commit_stats":null,"previous_names":["ericmorand/rollup-plugin-typescript-issue-2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmorand%2Frollup-plugin-typescript-issue-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmorand%2Frollup-plugin-typescript-issue-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmorand%2Frollup-plugin-typescript-issue-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmorand%2Frollup-plugin-typescript-issue-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericmorand","download_url":"https://codeload.github.com/ericmorand/rollup-plugin-typescript-issue-2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244877122,"owners_count":20524960,"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":"2024-11-28T06:15:10.416Z","updated_at":"2025-12-30T21:47:59.707Z","avatar_url":"https://github.com/ericmorand.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"To trigger the issue, just execute rollup:\n\n```shell\n$ npx rollup -i src/index.ts -p @rollup/plugin-typescript\nnpm WARN cli npm v10.2.4 does not support Node.js v16.20.2. This version of npm supports the following node versions: `^18.17.0 || \u003e=20.5.0`. You can find the latest version at https://nodejs.org/.\n\nsrc/index.ts → stdout...\nvar foo = 5;\n\nconsole.log(foo);\n(!) Plugin typescript: @rollup/plugin-typescript TS2304: Cannot find name 'foo'.\nsrc/invalid.ts: (1:1)\n\n1 foo\n  ~~~\n```\n\nNote how doing the same thing with `tsc` works perfectly:\n\n```shell\n$ tsc src/index.ts\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmorand%2Frollup-plugin-typescript-issue-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericmorand%2Frollup-plugin-typescript-issue-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmorand%2Frollup-plugin-typescript-issue-2/lists"}