Replaying doesn’t work

Troubleshooting replay problems is done easiest by enabling logging. Next, when replaying check your console logs. If you don’t see anything saying that replay data has been loaded, usually the problem is the following;

  • You haven’t set mode setting to 'replay'
  • You haven’t deleted build cache (for example Next.JS .next folder), so the old configuration file is cached
  • You have built your code with NODE_ENV set to 'production', which has caused mode to be set to 'capture' as a security measure.

Solution

Make sure that the correct mode is enabled, build with NODE_ENV set to 'development', and clear possible cache folders.