{"id":18383073,"url":"https://github.com/timkelty/yarn-order-bug","last_synced_at":"2025-04-11T21:36:59.193Z","repository":{"id":66508660,"uuid":"95120381","full_name":"timkelty/yarn-order-bug","owner":"timkelty","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-22T15:00:01.000Z","size":35741,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T23:43:14.091Z","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/timkelty.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":"2017-06-22T13:48:17.000Z","updated_at":"2017-06-22T13:59:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"aba90b44-0cb9-4d60-a3e4-24552bfe307f","html_url":"https://github.com/timkelty/yarn-order-bug","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/timkelty%2Fyarn-order-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timkelty%2Fyarn-order-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timkelty%2Fyarn-order-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timkelty%2Fyarn-order-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timkelty","download_url":"https://codeload.github.com/timkelty/yarn-order-bug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248484904,"owners_count":21111744,"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-06T01:09:58.263Z","updated_at":"2025-04-11T21:36:54.178Z","avatar_url":"https://github.com/timkelty.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Using yarn v0.24.6\n\n- Working branch: https://github.com/timkelty/yarn-order-bug/tree/working\n- Broken branch: https://github.com/timkelty/yarn-order-bug/tree/broken\n\nThe `package.json` in each branch is identical except for the order,\nhowever the resulting `node_modules` end up different, and in this case end up\nbreaking this script:\n\nComparison: https://github.com/timkelty/yarn-order-bug/compare/broken...working\n\n```\nyarn start -- --use neutrino-preset-web\n```\n\nI've included the sourced `node_modules` directories for comparison.\n\nYou can recreate this by starting fresh:\n\n```\nrm -rf ./node_modules yarn.lock \u0026\u0026 yarn cache clean \u0026\u0026 yarn\n```\n\nThe broken branch will give you an error like:\n\n```\nERROR in   TypeError: Cannot read property 'request' of undefined\n\n  - ExternalModuleFactoryPlugin.js:37 handleExternals\n    [yarn-order-bug]/[html-webpack-plugin]/[webpack]/lib/ExternalModuleFactoryPlugin.js:37:33\n\n  - ExternalModuleFactoryPlugin.js:46 next\n    [yarn-order-bug]/[html-webpack-plugin]/[webpack]/lib/ExternalModuleFactoryPlugin.js:46:8\n\n  - ExternalModuleFactoryPlugin.js:59 handleExternals\n    [yarn-order-bug]/[html-webpack-plugin]/[webpack]/lib/ExternalModuleFactoryPlugin.js:59:7\n\n  - ExternalModuleFactoryPlugin.js:79 ExternalModuleFactoryPlugin.\u003canonymous\u003e\n    [yarn-order-bug]/[html-webpack-plugin]/[webpack]/lib/ExternalModuleFactoryPlugin.js:79:5\n\n  - NormalModuleFactory.js:246 applyPluginsAsyncWaterfall\n    [yarn-order-bug]/[webpack]/lib/NormalModuleFactory.js:246:4\n\n  - Tapable.js:196 NormalModuleFactory.applyPluginsAsyncWaterfall\n    [yarn-order-bug]/[webpack]/[tapable]/lib/Tapable.js:196:70\n\n  - NormalModuleFactory.js:230 NormalModuleFactory.create\n    [yarn-order-bug]/[webpack]/lib/NormalModuleFactory.js:230:8\n\n  - Compilation.js:382 Compilation._addModuleChain\n    [yarn-order-bug]/[webpack]/lib/Compilation.js:382:17\n\n  - Compilation.js:464 Compilation.addEntry\n    [yarn-order-bug]/[webpack]/lib/Compilation.js:464:8\n\n  - SingleEntryPlugin.js:22 SingleEntryPlugin.\u003canonymous\u003e\n    [yarn-order-bug]/[html-webpack-plugin]/[webpack]/lib/SingleEntryPlugin.js:22:15\n\n  - Tapable.js:229 Compiler.applyPluginsParallel\n    [yarn-order-bug]/[webpack]/[tapable]/lib/Tapable.js:229:14\n\n  - Compiler.js:488\n    [yarn-order-bug]/[webpack]/lib/Compiler.js:488:8\n\n  - Tapable.js:131 Compiler.applyPluginsAsyncSeries\n    [yarn-order-bug]/[webpack]/[tapable]/lib/Tapable.js:131:46\n\n  - Compiler.js:481 Compiler.compile\n    [yarn-order-bug]/[webpack]/lib/Compiler.js:481:7\n\n  - Compiler.js:282 Compiler.runAsChild\n    [yarn-order-bug]/[webpack]/lib/Compiler.js:282:7\n\n  - compiler.js:70\n    [yarn-order-bug]/[html-webpack-plugin]/lib/compiler.js:70:19\n\n  - compiler.js:69 Object.compileTemplate\n    [yarn-order-bug]/[html-webpack-plugin]/lib/compiler.js:69:10\n\n  - index.js:47 Compiler.\u003canonymous\u003e\n    [yarn-order-bug]/[html-webpack-plugin]/index.js:47:40\n\n  - Tapable.js:229 Compiler.applyPluginsParallel\n    [yarn-order-bug]/[webpack]/[tapable]/lib/Tapable.js:229:14\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimkelty%2Fyarn-order-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimkelty%2Fyarn-order-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimkelty%2Fyarn-order-bug/lists"}