{"id":17033521,"url":"https://github.com/morgul/envsubst-bug-test","last_synced_at":"2026-04-30T11:32:26.452Z","repository":{"id":142042330,"uuid":"377505694","full_name":"Morgul/envsubst-bug-test","owner":"Morgul","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-16T13:36:46.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T03:59:38.746Z","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/Morgul.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-06-16T13:28:31.000Z","updated_at":"2021-06-16T13:36:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"76b02e21-b22a-4aeb-93f9-ee03b55337cd","html_url":"https://github.com/Morgul/envsubst-bug-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Morgul/envsubst-bug-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Morgul%2Fenvsubst-bug-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Morgul%2Fenvsubst-bug-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Morgul%2Fenvsubst-bug-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Morgul%2Fenvsubst-bug-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Morgul","download_url":"https://codeload.github.com/Morgul/envsubst-bug-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Morgul%2Fenvsubst-bug-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32463892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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-14T08:35:05.820Z","updated_at":"2026-04-30T11:32:26.428Z","avatar_url":"https://github.com/Morgul.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bug Reproduction for `tuplo/envsubst` #5\n\nSimply:\n  1. Run `npm build`\n  2. Run `npm start`\n\nYou should see an error message like the following:\n\n```\n~/d/envsubst-bug-test \u003e npm start\n\n\u003e envsubst-bug-test@1.0.0 start\n\u003e node ./dist/index.js\n\ninternal/modules/cjs/loader.js:1080\n      throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath);\n      ^\n\nError [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/ccase/devel/envsubst-bug-test/node_modules/@tuplo/envsubst/cjs/index.js\nrequire() of ES modules is not supported.\nrequire() of /home/ccase/devel/envsubst-bug-test/node_modules/@tuplo/envsubst/cjs/index.js from /home/ccase/devel/envsubst-bug-test/dist/index.js is an ES module file as it is a .js file whose nearest parent package.json contains \"type\": \"module\" which defines all .js files in that package scope as ES modules.\nInstead rename /home/ccase/devel/envsubst-bug-test/node_modules/@tuplo/envsubst/cjs/index.js to end in .cjs, change the requiring code to use import(), or remove \"type\": \"module\" from /home/ccase/devel/envsubst-bug-test/node_modules/@tuplo/envsubst/package.json.\n\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1080:13)\n    at Module.load (internal/modules/cjs/loader.js:928:32)\n    at Function.Module._load (internal/modules/cjs/loader.js:769:14)\n    at Module.require (internal/modules/cjs/loader.js:952:19)\n    at require (internal/modules/cjs/helpers.js:88:18)\n    at Object.\u003canonymous\u003e (/home/ccase/devel/envsubst-bug-test/dist/index.js:9:36)\n    at Module._compile (internal/modules/cjs/loader.js:1063:30)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)\n    at Module.load (internal/modules/cjs/loader.js:928:32)\n    at Function.Module._load (internal/modules/cjs/loader.js:769:14) {\n  code: 'ERR_REQUIRE_ESM'\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorgul%2Fenvsubst-bug-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorgul%2Fenvsubst-bug-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorgul%2Fenvsubst-bug-test/lists"}