I added the following dependencies to package.json:
"react-data-export": "^0.6.0" "xlsx": "^0.17.0" "tempa-xlsx": "0.0.1" Then, I deleted the node_modules and build folders.
After that, I ran these commands in order:
bash Kodu kopyala npm cache clear --force npm install npm run build This resolved the issue I was facing.