Production build fail

This is typically due to some outdated cached packages

Please delete the following files and folders:

  • .cache
  • build
  • node_modules
  • package-lock.json
  • yarn.lock

Then reinstall your node_modules with npm i or yarn install and rebuild the admin with NODE_ENV=production yarn build or NODE_ENV=production npm run build

1 Like