{"id":16295801,"url":"https://github.com/hamlim/next-layouts-babel-config-bug","last_synced_at":"2025-08-30T05:09:49.592Z","repository":{"id":60005080,"uuid":"540563666","full_name":"hamlim/next-layouts-babel-config-bug","owner":"hamlim","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-24T02:14:51.000Z","size":62,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-25T10:22:00.127Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/hamlim.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}},"created_at":"2022-09-23T18:11:00.000Z","updated_at":"2023-01-23T19:31:12.000Z","dependencies_parsed_at":"2022-09-25T14:20:26.612Z","dependency_job_id":null,"html_url":"https://github.com/hamlim/next-layouts-babel-config-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hamlim/next-layouts-babel-config-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Fnext-layouts-babel-config-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Fnext-layouts-babel-config-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Fnext-layouts-babel-config-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Fnext-layouts-babel-config-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamlim","download_url":"https://codeload.github.com/hamlim/next-layouts-babel-config-bug/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Fnext-layouts-babel-config-bug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272805572,"owners_count":24995916,"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-08-30T02:00:09.474Z","response_time":77,"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-10T20:19:49.820Z","updated_at":"2025-08-30T05:09:49.573Z","avatar_url":"https://github.com/hamlim.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bug with Layouts and Babel config\n\nThe Layouts feature seems to now break if I include any babel config at all, unsure if this is intentional / planned or if babel is still meant to be supported!\n\n## How to Reproduce:\n\n- Clone the repo\n- Install dependencies\n- Run `yarn dev`\n- Visit `http://localhost:3000` see working page\n- Run `mv babel.config.tmpjs babel.config.js`\n- Run `yarn dev`\n- See below error in the browser and in the terminal\n\n### Example output:\n\n```sh\nerror - (sc_server)/node_modules/next/dist/client/components/hooks-client-context.js (7:40) @ eval\nerror - TypeError: (0 , _react).createContext is not a function\n    at eval (webpack-internal:///(sc_server)/./node_modules/next/dist/client/components/hooks-client-context.js:10:41)\n    at (sc_server)/./node_modules/next/dist/client/components/hooks-client-context.js (/Users/matt/dev/temp-debug-layouts-next-sep-23/.next/server/app/page.js:208:1)\n    at __webpack_require__ (/Users/matt/dev/temp-debug-layouts-next-sep-23/.next/server/webpack-runtime.js:33:42)\n    at eval (webpack-internal:///(sc_server)/./node_modules/next/dist/client/components/app-router.client.js:22:27)\n    at (sc_server)/./node_modules/next/dist/client/components/app-router.client.js (/Users/matt/dev/temp-debug-layouts-next-sep-23/.next/server/app/page.js:197:1)\n    at __webpack_require__ (/Users/matt/dev/temp-debug-layouts-next-sep-23/.next/server/webpack-runtime.js:33:42)\n    at eval (webpack-internal:///(sc_server)/./node_modules/next/dist/build/webpack/loaders/next-app-loader.js?name=app%2Fpage\u0026appPaths=%2Fpage\u0026pagePath=private-next-app-dir%2Fpage.tsx\u0026appDir=%2FUsers%2Fmatt%2Fdev%2Ftemp-debug-layouts-next-sep-23%2Fapp\u0026pageExtensions=tsx\u0026pageExtensions=ts\u0026pageExtensions=jsx\u0026pageExtensions=js!:26:24)\n    at (sc_server)/./node_modules/next/dist/build/webpack/loaders/next-app-loader.js?name=app%2Fpage\u0026appPaths=%2Fpage\u0026pagePath=private-next-app-dir%2Fpage.tsx\u0026appDir=%2FUsers%2Fmatt%2Fdev%2Ftemp-debug-layouts-next-sep-23%2Fapp\u0026pageExtensions=tsx\u0026pageExtensions=ts\u0026pageExtensions=jsx\u0026pageExtensions=js! (/Users/matt/dev/temp-debug-layouts-next-sep-23/.next/server/app/page.js:121:1)\n    at __webpack_require__ (/Users/matt/dev/temp-debug-layouts-next-sep-23/.next/server/webpack-runtime.js:33:42)\n    at __webpack_exec__ (/Users/matt/dev/temp-debug-layouts-next-sep-23/.next/server/app/page.js:358:39) {\n  page: '/'\n}\nnull\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamlim%2Fnext-layouts-babel-config-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamlim%2Fnext-layouts-babel-config-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamlim%2Fnext-layouts-babel-config-bug/lists"}