1:"$Sreact.fragment" 2:I[9025,["545","static/chunks/c16f53c3-db36c35b4eab1cc3.js","173","static/chunks/173-cdf34a84fb71192b.js","53","static/chunks/53-0ab729016e0ca1ee.js","177","static/chunks/app/layout-2be9b5d42510a8b7.js"],"ThemeProviders"] 3:I[3704,["545","static/chunks/c16f53c3-db36c35b4eab1cc3.js","173","static/chunks/173-cdf34a84fb71192b.js","53","static/chunks/53-0ab729016e0ca1ee.js","177","static/chunks/app/layout-2be9b5d42510a8b7.js"],""] 4:I[7969,["545","static/chunks/c16f53c3-db36c35b4eab1cc3.js","173","static/chunks/173-cdf34a84fb71192b.js","53","static/chunks/53-0ab729016e0ca1ee.js","177","static/chunks/app/layout-2be9b5d42510a8b7.js"],"KBarSearchProvider"] 5:I[8173,["173","static/chunks/173-cdf34a84fb71192b.js","806","static/chunks/app/tags/page-9390b7c97616ba1d.js"],""] 6:I[2076,["545","static/chunks/c16f53c3-db36c35b4eab1cc3.js","173","static/chunks/173-cdf34a84fb71192b.js","53","static/chunks/53-0ab729016e0ca1ee.js","177","static/chunks/app/layout-2be9b5d42510a8b7.js"],"KBarButton"] 7:I[3367,["545","static/chunks/c16f53c3-db36c35b4eab1cc3.js","173","static/chunks/173-cdf34a84fb71192b.js","53","static/chunks/53-0ab729016e0ca1ee.js","177","static/chunks/app/layout-2be9b5d42510a8b7.js"],"default"] 8:I[6867,["545","static/chunks/c16f53c3-db36c35b4eab1cc3.js","173","static/chunks/173-cdf34a84fb71192b.js","53","static/chunks/53-0ab729016e0ca1ee.js","177","static/chunks/app/layout-2be9b5d42510a8b7.js"],"default"] 9:I[5244,[],""] a:I[3866,[],""] c:I[6213,[],"OutletBoundary"] e:I[6213,[],"MetadataBoundary"] 10:I[6213,[],"ViewportBoundary"] 12:I[4835,[],""] :HL["/blog/_next/static/media/7cba1811e3c25a15-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/blog/_next/static/css/731cbba446cec342.css","style"] :HL["/blog/_next/static/css/4dd06d12e3d88dab.css","style"] 0:{"P":null,"b":"GLI-3ht5bBOttQ3oVjjFP","p":"/blog","c":["","tags","nextjs"],"i":false,"f":[[["",{"children":["tags",{"children":[["tag","nextjs","d"],{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/blog/_next/static/css/731cbba446cec342.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/blog/_next/static/css/4dd06d12e3d88dab.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en-us","className":"__variable_92d5a0 scroll-smooth","suppressHydrationWarning":true,"children":[["$","link",null,{"rel":"apple-touch-icon","sizes":"76x76","href":"/blog/static/favicons/apple-touch-icon.png"}],["$","link",null,{"rel":"icon","type":"image/png","sizes":"32x32","href":"/blog/static/favicons/favicon-32x32.png"}],["$","link",null,{"rel":"icon","type":"image/png","sizes":"16x16","href":"/blog/static/favicons/favicon-16x16.png"}],["$","link",null,{"rel":"manifest","href":"/blog/static/favicons/site.webmanifest"}],["$","link",null,{"rel":"mask-icon","href":"/blog/static/favicons/safari-pinned-tab.svg","color":"#5bbad5"}],["$","meta",null,{"name":"msapplication-TileColor","content":"#000000"}],["$","meta",null,{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"#fff"}],["$","meta",null,{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"#000"}],["$","link",null,{"rel":"alternate","type":"application/rss+xml","href":"/blog/feed.xml"}],["$","body",null,{"className":"bg-white pl-[calc(100vw-100%)] text-black antialiased dark:bg-gray-950 dark:text-white","children":["$","$L2",null,{"children":[["$undefined","$undefined","$undefined",["$","$L3",null,{"async":true,"defer":true,"src":"https://analytics.umami.is/script.js"}],"$undefined","$undefined"],["$","section",null,{"className":"mx-auto max-w-3xl px-4 sm:px-6 xl:max-w-5xl xl:px-0","children":[["$","$L4",null,{"kbarConfig":{"searchDocumentsPath":"/blog/search.json"},"children":[["$","header",null,{"className":"flex items-center w-full bg-white/80 backdrop-blur-sm dark:bg-gray-950/80 justify-between py-6 border-b border-gray-100 dark:border-gray-800","children":[["$","$L5",null,{"className":"break-words","href":"/","aria-label":"Khokon's Blog","children":["$","div",null,{"className":"flex items-center justify-between","children":[["$","div",null,{"className":"mr-3 transform transition-transform hover:scale-105","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","xmlSpace":"preserve","width":53.87,"height":43.61,"viewBox":"0 0 512 512","children":[["$","path",null,{"d":"M359.465 512a14.486 14.486 0 0 1-14.481-14.484v-81.165c0-7.998 6.486-14.484 14.484-14.484h81.165c5.859 0 11.139 3.53 13.382 8.941a14.49 14.49 0 0 1-3.14 15.784l-81.165 81.165A14.48 14.48 0 0 1 359.465 512m14.487-81.165v31.714l31.714-31.714z","style":{"fill":"#2d527c"}}],["$","path",null,{"d":"M295.402 512H92.287c-19.523 0-35.404-15.881-35.404-35.403V60.262c0-19.523 15.881-35.404 35.404-35.404h327.428c19.523 0 35.403 15.883 35.403 35.404V416.35a14.5 14.5 0 0 1-4.242 10.241l-81.165 81.165c-5.657 5.654-14.826 5.654-20.484 0-5.656-5.656-5.656-14.827 0-20.484l76.923-76.923V60.262a6.444 6.444 0 0 0-6.435-6.437H92.287a6.445 6.445 0 0 0-6.437 6.437v416.333a6.443 6.443 0 0 0 6.437 6.435h203.116c7.998 0 14.484 6.486 14.484 14.484-.001 7.999-6.487 14.486-14.485 14.486","style":{"fill":"#2d527c"}}],["$","path",null,{"d":"M440.635 138.081V60.262c0-11.554-9.367-20.919-20.92-20.919H92.287c-11.554 0-20.92 9.365-20.92 20.919v77.818h369.268z","style":{"fill":"#cee8fa"}}],["$","path",null,{"d":"M440.635 152.564H71.366c-7.999 0-14.484-6.486-14.484-14.484V60.262c0-19.523 15.881-35.403 35.404-35.403h327.428c19.523 0 35.403 15.881 35.403 35.403v77.818c.002 7.999-6.484 14.484-14.482 14.484M85.85 123.597h340.3V60.262a6.44 6.44 0 0 0-6.435-6.435H92.287a6.444 6.444 0 0 0-6.437 6.435z","style":{"fill":"#2d527c"}}],["$","path",null,{"d":"M129.63 80.627c-7.999 0-14.484-6.486-14.484-14.484V14.484C115.146 6.486 121.631 0 129.63 0s14.484 6.486 14.484 14.484v51.659c0 7.998-6.484 14.484-14.484 14.484M213.876 80.627c-7.999 0-14.484-6.486-14.484-14.484V14.484C199.393 6.486 205.877 0 213.876 0s14.484 6.486 14.484 14.484v51.659c0 7.998-6.484 14.484-14.484 14.484M298.124 80.627c-7.998 0-14.484-6.486-14.484-14.484V14.484C283.64 6.486 290.126 0 298.124 0s14.484 6.486 14.484 14.484v51.659c0 7.998-6.486 14.484-14.484 14.484M382.371 80.627c-7.998 0-14.484-6.486-14.484-14.484V14.484C367.888 6.486 374.373 0 382.371 0s14.484 6.486 14.484 14.484v51.659c0 7.998-6.486 14.484-14.484 14.484M129.63 440.789c-7.999 0-14.484-6.486-14.484-14.484V194.083c0-7.998 6.484-14.484 14.484-14.484s14.484 6.486 14.484 14.484v232.222c0 7.998-6.484 14.484-14.484 14.484","style":{"fill":"#2d527c"}}]]}]}],["$","div",null,{"className":"hidden h-6 text-xl font-bold text-gray-900 dark:text-white sm:block lg:text-2xl","children":"Khokon's Blog"}]]}]}],["$","div",null,{"className":"flex items-center space-x-3 leading-5 sm:space-x-5","children":[["$","nav",null,{"className":"no-scrollbar hidden max-w-40 items-center space-x-3 overflow-x-auto pr-2 sm:flex sm:space-x-5 md:max-w-72 lg:max-w-96","children":[["$","$L5","Posts",{"className":"relative m-1 block px-3 py-2 font-medium text-gray-700 transition-colors hover:text-primary-600 dark:text-gray-200 dark:hover:text-primary-400","href":"/posts","children":[["$","span",null,{"className":"relative z-10","children":"Posts"}],["$","span",null,{"className":"absolute inset-0 -z-10 scale-0 rounded-lg bg-primary-50 transition-transform hover:scale-100 dark:bg-primary-900/20"}]]}],["$","$L5","Tags",{"className":"relative m-1 block px-3 py-2 font-medium text-gray-700 transition-colors hover:text-primary-600 dark:text-gray-200 dark:hover:text-primary-400","href":"/tags","children":[["$","span",null,{"className":"relative z-10","children":"Tags"}],["$","span",null,{"className":"absolute inset-0 -z-10 scale-0 rounded-lg bg-primary-50 transition-transform hover:scale-100 dark:bg-primary-900/20"}]]}],["$","$L5","About",{"className":"relative m-1 block px-3 py-2 font-medium text-gray-700 transition-colors hover:text-primary-600 dark:text-gray-200 dark:hover:text-primary-400","href":"/about","children":[["$","span",null,{"className":"relative z-10","children":"About"}],["$","span",null,{"className":"absolute inset-0 -z-10 scale-0 rounded-lg bg-primary-50 transition-transform hover:scale-100 dark:bg-primary-900/20"}]]}]]}],["$","div",null,{"className":"flex items-center space-x-2 sm:space-x-3","children":[["$","$L6",null,{"aria-label":"Search","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","fill":"none","viewBox":"0 0 24 24","strokeWidth":1.5,"stroke":"currentColor","className":"h-6 w-6 text-gray-900 hover:text-primary-500 dark:text-gray-100 dark:hover:text-primary-400","children":["$","path",null,{"strokeLinecap":"round","strokeLinejoin":"round","d":"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"}]}]}],["$","$L7",null,{}],["$","$L8",null,{}]]}]]}]]}],["$","main",null,{"className":"mb-auto","children":["$","$L9",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$La",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[],["$","div",null,{"className":"flex min-h-[60vh] flex-col items-center justify-center px-4 text-center","children":["$","div",null,{"className":"animate-fade-in space-y-6","children":[["$","div",null,{"className":"text-6xl font-bold text-primary-500 sm:text-8xl md:text-9xl","children":"404"}],["$","div",null,{"className":"space-y-3","children":[["$","h1",null,{"className":"text-2xl font-bold text-gray-900 dark:text-gray-100 sm:text-3xl","children":"Page Not Found"}],["$","p",null,{"className":"max-w-md text-gray-600 dark:text-gray-400","children":"Sorry, we couldn't find the page you're looking for. It might have been moved, deleted, or never existed."}]]}],["$","div",null,{"className":"flex flex-col items-center justify-center gap-4 pt-6 sm:flex-row","children":[["$","$L5",null,{"className":"inline-flex items-center gap-2 rounded-lg bg-primary-500 px-6 py-3 font-medium text-white transition-colors hover:bg-primary-600 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2","href":"/","children":[["$","svg",null,{"className":"h-4 w-4","fill":"none","viewBox":"0 0 24 24","stroke":"currentColor","children":["$","path",null,{"strokeLinecap":"round","strokeLinejoin":"round","strokeWidth":2,"d":"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"}]}],"Go Home"]}],["$","$L5",null,{"className":"inline-flex items-center gap-2 rounded-lg border border-gray-300 px-6 py-3 font-medium text-gray-700 transition-colors hover:bg-gray-50 dark:border-gray-600 dark:text-gray-300 dark:hover:bg-gray-800","href":"/posts","children":[["$","svg",null,{"className":"h-4 w-4","fill":"none","viewBox":"0 0 24 24","stroke":"currentColor","children":["$","path",null,{"strokeLinecap":"round","strokeLinejoin":"round","strokeWidth":2,"d":"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}]}],"Browse Posts"]}]]}],["$","div",null,{"className":"pt-8 text-sm text-gray-500 dark:text-gray-400","children":[["$","p",null,{"children":"Looking for something specific?"}],["$","div",null,{"className":"mt-2 flex items-center justify-center gap-4","children":[["$","$L5",null,{"className":"transition-colors hover:text-primary-500","href":"/tags","children":"Browse by tags"}],["$","span",null,{"children":"•"}],["$","$L5",null,{"className":"transition-colors hover:text-primary-500","href":"/about","children":"Learn more about us"}]]}]]}]]}]}]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}],["$","footer",null,{"children":["$","div",null,{"className":"mt-16 flex flex-col items-center border-t border-gray-200 bg-gray-50 dark:border-gray-700 dark:bg-gray-900","children":["$","div",null,{"className":"mb-8 flex w-full max-w-4xl flex-col items-center space-y-4 px-4 py-8","children":[["$","div",null,{"className":"flex space-x-4","children":[["$","a",null,{"className":"text-sm text-gray-500 transition hover:text-gray-600","target":"_blank","rel":"noopener noreferrer","href":"mailto:hello@khokon.dev","children":[["$","span",null,{"className":"sr-only","children":"mail"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20","className":"fill-current text-gray-700 hover:text-primary-500 dark:text-gray-200 dark:hover:text-primary-400 h-6 w-6","children":[["$","title",null,{"children":"Mail"}],["$","path",null,{"d":"M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"}],["$","path",null,{"d":"M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z"}]]}]]}],["$","a",null,{"className":"text-sm text-gray-500 transition hover:text-gray-600","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/khokonm/blog","children":[["$","span",null,{"className":"sr-only","children":"github"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","className":"fill-current text-gray-700 hover:text-primary-500 dark:text-gray-200 dark:hover:text-primary-400 h-6 w-6","children":[["$","title",null,{"children":"GitHub"}],["$","path",null,{"d":"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"}]]}]]}],["$","a",null,{"className":"text-sm text-gray-500 transition hover:text-gray-600","target":"_blank","rel":"noopener noreferrer","href":"https://www.linkedin.com/in/khokon-m/","children":[["$","span",null,{"className":"sr-only","children":"linkedin"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","className":"fill-current text-gray-700 hover:text-primary-500 dark:text-gray-200 dark:hover:text-primary-400 h-6 w-6","children":[["$","title",null,{"children":"Linkedin"}],["$","path",null,{"d":"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"}]]}]]}],["$","a",null,{"className":"text-sm text-gray-500 transition hover:text-gray-600","target":"_blank","rel":"noopener noreferrer","href":"https://x.com/Md_Khokon_Mia","children":[["$","span",null,{"className":"sr-only","children":"x"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","className":"fill-current text-gray-700 hover:text-primary-500 dark:text-gray-200 dark:hover:text-primary-400 h-6 w-6","children":[["$","title",null,{"children":"X"}],["$","path",null,{"d":"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"}]]}]]}]]}],["$","div",null,{"className":"flex flex-col items-center space-y-2 text-sm text-gray-500 dark:text-gray-400","children":[["$","div",null,{"className":"flex flex-wrap items-center justify-center gap-4","children":[["$","$L5",null,{"className":"transition-colors hover:text-primary-500","href":"/","children":"Khokon's Blog - Tech Insights & Learning"}],["$","span",null,{"children":"•"}],["$","$L5",null,{"className":"transition-colors hover:text-primary-500","href":"/posts","children":"Posts"}],["$","span",null,{"children":"•"}],["$","$L5",null,{"className":"transition-colors hover:text-primary-500","href":"/tags","children":"Tags"}],["$","span",null,{"children":"•"}],["$","$L5",null,{"className":"transition-colors hover:text-primary-500","href":"/about","children":"About"}]]}],["$","div",null,{"className":"text-center","children":[["$","div",null,{"className":"mb-1","children":["© ",2025," ","Khokon M.",". All rights reserved."]}],["$","div",null,{"className":"flex items-center justify-center gap-1","children":[["$","span",null,{"children":"Built with"}],["$","span",null,{"className":"text-red-500","children":"♥"}],["$","span",null,{"children":"using"}],["$","a",null,{"className":"font-medium transition-colors hover:text-primary-500","target":"_blank","rel":"noopener noreferrer","href":"https://nextjs.org","children":"Next.js"}],["$","span",null,{"children":"&"}],["$","a",null,{"className":"font-medium transition-colors hover:text-primary-500","target":"_blank","rel":"noopener noreferrer","href":"https://tailwindcss.com","children":"Tailwind CSS"}]]}]]}]]}]]}]}]}]]}]]}]}]]}]]}],{"children":["tags",["$","$1","c",{"children":[null,["$","$L9",null,{"parallelRouterKey":"children","segmentPath":["children","tags","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$La",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["tag","nextjs","d"],["$","$1","c",{"children":[null,["$","$L9",null,{"parallelRouterKey":"children","segmentPath":["children","tags","children","$0:f:0:1:2:children:2:children:0","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$La",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":["$Lb",null,["$","$Lc",null,{"children":"$Ld"}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","jmON96ZAA22_WEngoXcUe",{"children":[["$","$Le",null,{"children":"$Lf"}],["$","$L10",null,{"children":"$L11"}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]]}],false]],"m":"$undefined","G":["$12","$undefined"],"s":false,"S":true} 13:I[2333,["173","static/chunks/173-cdf34a84fb71192b.js","671","static/chunks/671-ff9b18c1dce28815.js","755","static/chunks/app/tags/%5Btag%5D/page-1c7fd088afebeb7b.js"],"default"] b:["$","$L13",null,{"posts":[{"title":"Fixed: TypeError: Cannot read properties of null (reading 'useReducer') - Next.js","date":"2025-03-05T00:00:00.000Z","tags":["javascript","Next.js","useReducer"],"draft":false,"summary":"Troubleshooting Next.js issues on MacBook with M chip, including 'next: command not found' and 'TypeError: Cannot read properties of null (reading useReducer)'. Learn how to fix path resolution and React version mismatches.","week":3,"type":"Blog","readingTime":{"text":"4 min read","minutes":3.085,"time":185100,"words":617},"slug":"nextjs/01-fix-TypeError-Cannot-read-properties-of-null-reading-useReducer","path":"posts/nextjs/01-fix-TypeError-Cannot-read-properties-of-null-reading-useReducer","filePath":"blog/nextjs/01-fix-TypeError-Cannot-read-properties-of-null-reading-useReducer.mdx","toc":[{"value":"🔍 Identifying the Issues","url":"#-identifying-the-issues","depth":2},{"value":"⚠️ 1. Global Next.js Installation Not Working Properly","url":"#️-1-global-nextjs-installation-not-working-properly","depth":2},{"value":"🔎 2. Running Next.js After Cleanup → 'Command Not Found'","url":"#-2-running-nextjs-after-cleanup--command-not-found","depth":2},{"value":"🛠️ 3. Checking Next.js Installation Inside the Project","url":"#️-3-checking-nextjs-installation-inside-the-project","depth":2},{"value":"✅ 4. Manually Running Next.js Worked","url":"#-4-manually-running-nextjs-worked","depth":2},{"value":"🔧 5. Fixing the Path Issue (Temporary & Permanent Solutions)","url":"#-5-fixing-the-path-issue-temporary--permanent-solutions","depth":2},{"value":"🛠️ Temporary Fix","url":"#️-temporary-fix","depth":3},{"value":"🔒 Making It Permanent","url":"#-making-it-permanent","depth":3},{"value":"📚 Additional Resources","url":"#-additional-resources","depth":2}],"structuredData":{"@context":"https://schema.org","@type":"BlogPosting","headline":"Fixed: TypeError: Cannot read properties of null (reading 'useReducer') - Next.js","datePublished":"2025-03-05T00:00:00.000Z","dateModified":"2025-03-05T00:00:00.000Z","description":"Troubleshooting Next.js issues on MacBook with M chip, including 'next: command not found' and 'TypeError: Cannot read properties of null (reading useReducer)'. Learn how to fix path resolution and React version mismatches.","image":"/blog/static/images/twitter-card.png","url":"https://khokon.dev/blog/posts/nextjs/01-fix-TypeError-Cannot-read-properties-of-null-reading-useReducer"}}],"initialDisplayPosts":["$b:props:posts:0"],"pagination":{"currentPage":1,"totalPages":1},"title":"Nextjs"}] 11:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] f:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"nextjs | Khokon's Blog - Tech Insights & Learning"}],["$","meta","2",{"name":"description","content":"Khokon's Blog - Tech Insights & Learning nextjs tagged content"}],["$","meta","3",{"name":"robots","content":"index, follow"}],["$","meta","4",{"name":"googlebot","content":"index, follow, max-video-preview:-1, max-image-preview:large, max-snippet:-1"}],["$","link","5",{"rel":"canonical","href":"https://khokon.dev/blog/tags/nextjs"}],["$","link","6",{"rel":"alternate","type":"application/rss+xml","href":"https://khokon.dev/blog/tags/nextjs/feed.xml"}],["$","meta","7",{"property":"og:title","content":"nextjs | Khokon's Blog - Tech Insights & Learning"}],["$","meta","8",{"property":"og:description","content":"Khokon's Blog - Tech Insights & Learning nextjs tagged content"}],["$","meta","9",{"property":"og:url","content":"https://khokon.dev/blog/tags/nextjs"}],["$","meta","10",{"property":"og:site_name","content":"Khokon's Blog - Tech Insights & Learning"}],["$","meta","11",{"property":"og:locale","content":"en_US"}],["$","meta","12",{"property":"og:image","content":"https://khokon.dev/blog/blog/static/images/twitter-card.png"}],["$","meta","13",{"property":"og:type","content":"website"}],["$","meta","14",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","15",{"name":"twitter:title","content":"nextjs | Khokon's Blog - Tech Insights & Learning"}],["$","meta","16",{"name":"twitter:description","content":"Khokon's Blog - Tech Insights & Learning nextjs tagged content"}],["$","meta","17",{"name":"twitter:image","content":"https://khokon.dev/blog/blog/static/images/twitter-card.png"}]] d:null