Next.js Discord

Discord Forum

Project build error

Unanswered
Thrianta posted this in #help-forum
Open in Discord
ThriantaOP
Hi guys! I'm using nextjs 14.0.2 with redux-toolkit.
Everything worked fine until I wanted to build my project. I got this incomprehensible error:

at useStore (/path-to-project/client/node_modules/react-redux/lib/hooks/useStore.js:23:7)
at useDispatch (/path-to-project/client/node_modules/react-redux/lib/hooks/useDispatch.js:21:19)
at u (/path-to-project/client/.next/server/chunks/228.js:1:5333)
at Wc (/path-to-project/client/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44)
at Zc (/path-to-project/client/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253)
at Z (/path-to-project/client/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)

it would be one thing if this error occurred at the development stage, but everything worked fine at this stage. can you tell me what this might be related to? thank you in advance!

0 Replies