Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Error running the client: TypeError: Cannot read properties of null (reading 'useContext') #1

Open
maestros opened this issue Jun 17, 2022 · 0 comments

Comments

@maestros
Copy link

Hi,

Many thanks for this tutorial, however I'm getting the following error when I run the client:

cd client
npm run dev
....
TypeError: Cannot read properties of null (reading 'useContext')
    at Object.useContext (C:\repos\nft-marketplace-box\client\node_modules\react\cjs\react.development.js:1616:21)
    at Html (webpack-internal:///./node_modules/next/dist/pages/_document.js:204:73)
    at renderWithHooks (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5479:16)
    at renderIndeterminateComponent (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5552:15)
    at renderElement (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5767:7)
    at renderNodeDestructive (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5906:11)
    at finishClassComponent (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5509:3)
    at renderClassComponent (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5517:3)
    at renderElement (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5764:7)
    at renderNodeDestructive (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5906:11)
    at renderContextProvider (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5741:3)
    at renderElement (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5838:11)
    at renderNodeDestructive (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5906:11)
    at renderContextProvider (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5741:3)
    at renderElement (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5838:11)
    at renderNodeDestructive (c:\repos\nft-marketplace-box\client\node_modules\react-dom\cjs\react-dom-server-legacy.browser.development.js:5906:11)

I believe I followed your instructions to the letter.

Any advice would be appreciated.

Many thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant