await addDoc(collection(db, 'users', idDoc, 'notes'), {
title: noteTitle,
body: 'comentario por defecto.',
timestamp: serverTimestamp(),
});


When I trying to add data in my sub collection 'notes'. Appear this mistake, I don't know what is happening because I using the same code reference in Firebase v9 Documentation.
Extra Note: idDoc returns me: YYwcNWMfznuwAB8eN0sU