Error: Object does not support property or method "captureStackTrace"

Use your collection name, not the dataset name. and not $w.(“#item”)