{"id":26156990,"url":"https://github.com/linuxuser586/broadcast-channel-svelte-kit-bug","last_synced_at":"2025-10-29T22:38:54.900Z","repository":{"id":142050243,"uuid":"391491588","full_name":"linuxuser586/broadcast-channel-svelte-kit-bug","owner":"linuxuser586","description":"Demo broadcast-channel SvelteKit Bug","archived":false,"fork":false,"pushed_at":"2021-08-01T00:58:45.000Z","size":512,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-03-11T09:43:25.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linuxuser586.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-01T00:58:24.000Z","updated_at":"2021-08-01T00:58:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"bdcfeff6-f8a1-411d-9b64-aec9ea7910cd","html_url":"https://github.com/linuxuser586/broadcast-channel-svelte-kit-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/linuxuser586/broadcast-channel-svelte-kit-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxuser586%2Fbroadcast-channel-svelte-kit-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxuser586%2Fbroadcast-channel-svelte-kit-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxuser586%2Fbroadcast-channel-svelte-kit-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxuser586%2Fbroadcast-channel-svelte-kit-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linuxuser586","download_url":"https://codeload.github.com/linuxuser586/broadcast-channel-svelte-kit-bug/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuxuser586%2Fbroadcast-channel-svelte-kit-bug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281713044,"owners_count":26548728,"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-10-29T02:00:06.901Z","response_time":59,"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":"2025-03-11T09:37:12.635Z","updated_at":"2025-10-29T22:38:54.895Z","avatar_url":"https://github.com/linuxuser586.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BroadcastChannel SvelteKit Bug\n\n## Demo\n\n```bash\ngit clone https://github.com/linuxuser586/broadcast-channel-svelte-kit-bug.git\ncd broadcast-channel-svelte-kit-bug\nnpm i\nnpm run dev -- --open\n```\n\nObserver `process is not defined` error\n\nClone the patched version of [broadcast-channel](https://github.com/linuxuser586/broadcast-channel/tree/svelte-kit-fixes)\n\n```bash\ngit clone --branch svelte-kit-fixes https://github.com/linuxuser586/broadcast-channel.git\ncd broadcast-channel\nnpm link\n```\n\nRun with patch\n\n```bash\n# in broadcast-channel-svelte-kit-bug directory\n# clear the vite cache\nrm -rf node_modules/.vite\nnpm link broadcast-channel\nnpm run dev -- --open\n```\n\n## Troubleshooting\n\nYou may get an error when vite reloads creating the dependency cache. Refreshing the browser or closing the browser and run dev again should resolve the issue.\n\n## Developing\n\nOnce you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:\n\n```bash\nnpm run dev\n\n# or start the server and open the app in a new browser tab\nnpm run dev -- --open\n```\n\n## Building\n\nBefore creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then:\n\n```bash\nnpm run build\n```\n\n\u003e You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxuser586%2Fbroadcast-channel-svelte-kit-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxuser586%2Fbroadcast-channel-svelte-kit-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxuser586%2Fbroadcast-channel-svelte-kit-bug/lists"}