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

Hey guys,
I am getting this error: " TypeError: Object doesn’t support property or method ‘captureStackTrace’ " once I run my code. Could anybody please briefly explain what this error means and what I have to look for to fix it?

My code is this:

wixData.query($w('#DataHotel'))
   	.eq("name", HName)
   	.find()
  	.then( (results) => {
     	        console.log(results.items);
                resitems = results.items;} );

Thanks a lot and make it a great day!

Make sure that you are using the wix data query code line correctly.
https://www.wix.com/corvid/reference/wix-data.WixDataQuery.html
https://www.wix.com/corvid/reference/wix-data.WixDataQuery.html#eq

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

Thanks a lot for your reply!
The thing is, I am storing the data I want to query in a database. So what should I put instead of the dataset name? Is there a way how to convert a database into a collection?

Sorry, I am quite new to Wix and also JavaScript. I was trying out this solution instead of filtering a dataset, which I asked about here (for you to get more information about my problem): https://www.wix.com/corvid/forum/community-discussion/filter-dataset-1/p-1/dl-5d51a4aac3270200172f63af

Actually I am quite stuck at the moment, having tried various approaches to solve my issue.
So any help is greatly appreciated!

You have a collection (=databse), use its name. Don’t use a data set if you want to use query. don’t use $w(“#”). Just put the collection name in the parentheses.