{"id":16453436,"url":"https://github.com/blimmer/show-vite-issue","last_synced_at":"2025-09-07T01:32:29.460Z","repository":{"id":145469668,"uuid":"367162838","full_name":"blimmer/show-vite-issue","owner":"blimmer","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-13T20:10:01.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-29T11:55:36.619Z","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/blimmer.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-05-13T20:09:54.000Z","updated_at":"2021-05-13T20:10:03.000Z","dependencies_parsed_at":"2023-06-01T04:15:48.492Z","dependency_job_id":null,"html_url":"https://github.com/blimmer/show-vite-issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blimmer/show-vite-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fshow-vite-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fshow-vite-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fshow-vite-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fshow-vite-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blimmer","download_url":"https://codeload.github.com/blimmer/show-vite-issue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fshow-vite-issue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273986612,"owners_count":25202704,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-11T10:15:37.573Z","updated_at":"2025-09-07T01:32:29.431Z","avatar_url":"https://github.com/blimmer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vite `require is not defined` Issue Repro\n\nThis repository is a reproduction case for vite issue [todo]().\n\nTo reproduce:\n\n1. Clone this repo.\n1. Install dependencies (`npm ci`)\n1. Start vite (`npm run dev`)\n\n![](https://i.imgur.com/9q10pQI.png)\n\nYou'll see the following error in the console:\n\n```\nUncaught ReferenceError: require is not defined\n    js entry.js:8\n    __require chunk-L26DXZYY.js:12\n    \u003canonymous\u003e react-date-picker:1\n```\n\nThe require in question is a `css` import from the `react-date-picker` library:\n\n```\nrequire(\"react-calendar/dist/Calendar.css\");\n```\n\nIndeed, this isn't getting rewritten by the vite process.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblimmer%2Fshow-vite-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblimmer%2Fshow-vite-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblimmer%2Fshow-vite-issue/lists"}