{"id":16182406,"url":"https://github.com/drawveloper/fresh-nested-islands","last_synced_at":"2025-06-15T20:37:23.950Z","repository":{"id":148526244,"uuid":"485944040","full_name":"drawveloper/fresh-nested-islands","owner":"drawveloper","description":"Repro for nested island bug in deno fresh","archived":false,"fork":false,"pushed_at":"2022-04-26T20:52:55.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T12:47:05.039Z","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/drawveloper.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":"2022-04-26T20:52:10.000Z","updated_at":"2023-03-09T02:14:33.000Z","dependencies_parsed_at":"2023-05-20T10:00:47.744Z","dependency_job_id":null,"html_url":"https://github.com/drawveloper/fresh-nested-islands","commit_stats":null,"previous_names":["drawveloper/fresh-nested-islands"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drawveloper/fresh-nested-islands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawveloper%2Ffresh-nested-islands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawveloper%2Ffresh-nested-islands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawveloper%2Ffresh-nested-islands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawveloper%2Ffresh-nested-islands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drawveloper","download_url":"https://codeload.github.com/drawveloper/fresh-nested-islands/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drawveloper%2Ffresh-nested-islands/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260046265,"owners_count":22950827,"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-10-10T06:31:20.190Z","updated_at":"2025-06-15T20:37:23.930Z","avatar_url":"https://github.com/drawveloper.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Repro for nested island bug\n\n### Usage\n\nStart the project:\n\n```\ndeno task dev\n```\n\n# The error\n\nThe error is exercised by the `islands/Outer.tsx` component.\n\nApparently, when an Island returns another Island directly, instead of wrapped\nin an element such as div, fresh breaks with this in the console:\n\n```\nmain.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'nextSibling')\n    at h (main.js:1:99)\n    at n (main.js:1:659)\n    at n (main.js:1:690)\n    at n (main.js:1:717)\n    at n (main.js:1:717)\n    at S (main.js:1:722)\n    at (index):4:1\n```\n\nIn code:\n\n```\nimport {a as c, b as a} from \"./chunk-UCTKUVK6.js\";\nfunction h(e, n) {\n    n = [].concat(n);\n    let t = n[n.length - 1].nextSibling;\n    function i(o, s) {\n        e.insertBefore(o, s || t)\n    }\n    return e.__k = {\n        nodeType: 1,\n        parentNode: e,\n        firstChild: n[0],\n        childNodes: n,\n        insertBefore: i,\n        appendChild: i,\n        removeChild: function(o) {\n            e.removeChild(o)\n        }\n    }\n}\n```\n\n# And a question :)\n\nIs there a \"debug friendly mode\" in fresh?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrawveloper%2Ffresh-nested-islands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrawveloper%2Ffresh-nested-islands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrawveloper%2Ffresh-nested-islands/lists"}