DEV Community

[Comment from a deleted post]
Collapse
 
kkaar profile image
KKaar

Everything worked super fine until I upgraded my rules to use Map.diff as following: request.resource.data.diff(resource.data).affectedKeys().hasOnly('myKey').

Seems like the emulator can't find function called 'diff', though it works just fine locally.

Looking at your Dockerfile I couldn't find any issues as well. Any ideas what might be causing it?

Collapse
 
wceolin profile image
Will Ceolin • Edited

Hi! Make sure you have the latest versions of @firebase/testing and the Firebase emulator installed. In my case, I've updated all Firebase dependencies (firebase, firebase-tools, @firebase/testing). After that, it automatically updated the Emulator once I started it.