Collecting and Displaying User Generated Content

Hi community,

Need some help troubleshooting some code. I have no coding knowledge whatsoever, saw a youtube video (Wix Code | How to Collect & Display User-Generated Content on Your Website - YouTube) on this topic and copied the code, replacing their variables with mine where it made sense. I’m getting the following error " Cannot find module ‘wix-Data’ in ‘public/pages/dhezw.js’".

Attaching my code below, would appreciate it if i could get some help identifying where i went wrong and what to change.

Thanks in advance everyone!

Hi,

You’ll need to import wixData before you can use it.

import wixData from 'wix-data';

if i want to upload and view data on two seprate pages what would be the codes for that?