{"id":20061641,"url":"https://github.com/tylerrick/repro_getcontext_from_comp_inside_each","last_synced_at":"2026-05-13T00:06:26.071Z","repository":{"id":66442507,"uuid":"300146678","full_name":"TylerRick/repro_getContext_from_comp_inside_each","owner":"TylerRick","description":"Reproduce Svelte error \"Function called outside component initialization\" when getContext from a _component_ (which should be allowed) inside an each loop","archived":false,"fork":false,"pushed_at":"2020-10-01T21:14:14.000Z","size":170,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-15T06:15:06.856Z","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/TylerRick.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":"2020-10-01T04:47:23.000Z","updated_at":"2020-10-01T21:14:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"34d91fbc-79f5-47b8-8599-c88ad8bdb513","html_url":"https://github.com/TylerRick/repro_getContext_from_comp_inside_each","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TylerRick/repro_getContext_from_comp_inside_each","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TylerRick%2Frepro_getContext_from_comp_inside_each","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TylerRick%2Frepro_getContext_from_comp_inside_each/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TylerRick%2Frepro_getContext_from_comp_inside_each/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TylerRick%2Frepro_getContext_from_comp_inside_each/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TylerRick","download_url":"https://codeload.github.com/TylerRick/repro_getContext_from_comp_inside_each/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TylerRick%2Frepro_getContext_from_comp_inside_each/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32961818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11-13T13:21:04.169Z","updated_at":"2026-05-13T00:06:26.043Z","avatar_url":"https://github.com/TylerRick.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a minimal reproduction of a \"Function called outside component initialization\" error that I\nran into in a real app, and my various attempts to figure out the cause and resolution of the error.\n\nMore information can be found in this question:\n\u003chttps://stackoverflow.com/questions/64152594/should-svelte-libraries-include-external-svelte-in-rollup-config-js-func\u003e\n\nTo build this app:\n\n1. `npm i`\n\n1. Build its dependency:\n\n    ```\n    cd packages/my-new-component/\n    npx rollup -c -w\n    ```\n\n1. Build the app:\n\n    ```\n    npx rollup -c -w\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylerrick%2Frepro_getcontext_from_comp_inside_each","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftylerrick%2Frepro_getcontext_from_comp_inside_each","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylerrick%2Frepro_getcontext_from_comp_inside_each/lists"}