Deployment or 'npm run build' Error
Unanswered
Himalayan posted this in #help-forum
HimalayanOP
I am facing some issues with this repo of mine https://github.com/Aryan9592/Crowdfunding_Dapp while deploying this app on vercel..Then after using command 'npm run build' I get errors like: Document is not defined and some other stuff, but 'npm run dev' works fine..
Seeking help!
Seeking help!
4 Replies
HimalayanOP
https://github.com/Aryan9592/Crowdfunding_Dapp/blob/main/src/Context/CrowdFunding.js
the only code I can see which can cause this error is this context file. Maybe try to dynamically import that file that cause this error
the only code I can see which can cause this error is this context file. Maybe try to dynamically import that file that cause this error
HimalayanOP
@@ts-ignore looks like 'next/dynamic' could help here..But right now I am facing problem of how exactly use it in here, Could you try implementing that dynamic import in 'NavBar.jsx' i.e https://github.com/Aryan9592/Crowdfunding_Dapp/blob/main/src/components/NavBar.jsx