K
Kinde3mo ago
codeonym

TypeError: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function

When rendering <LoginLink> and <RegisterLink> JSX in NextJs page , i get the error log bellow Error Log: ⨯ TypeError: (0 , reactWEBPACK_IMPORTED_MODULE_0.createContext) is not a function at eval (webpack-internal:///(rsc)/./node_modules/@kinde-oss/kinde-auth-nextjs/dist/index.js:15:11887) at (rsc)/./node_modules/@kinde-oss/kinde-auth-nextjs/dist/index.js (/home/codeonym/WebstormProjects/brikool-frontend/.next/server/vendor-chunks/@kinde-oss.js:20:1) at webpack_require (/home/codeonym/WebstormProjects/brikool-frontend/.next/server/webpack-runtime.js:33:42) at eval (webpack-internal:///(rsc)/./src/app/[locale]/page.tsx:12:86) at (rsc)/./src/app/[locale]/page.tsx (/home/codeonym/WebstormProjects/brikool-frontend/.next/server/app/[locale]/page.js:293:1) at Function.webpack_require (/home/codeonym/WebstormProjects/brikool-frontend/.next/server/webpack-runtime.js:33:42) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async collectGenerateParams (/home/codeonym/WebstormProjects/brikool-frontend/node_modules/next/dist/build/utils.js:921:21) at async Object.loadStaticPaths (/home/codeonym/WebstormProjects/brikool-frontend/node_modules/next/dist/server/dev/static-paths-worker.js:46:13) { type: 'TypeError', page: '/fr' } GET /fr 500 in 1488ms
1 Reply
IkiTg07
IkiTg073mo ago
Try adding "use client" to your page
Want results from more Discord servers?
Add your server