Dynamic dataset for a regular page?

Seems like you mixing front-end and backend.

I see an EXPORT-FUNCTION in your frontend code, right?

export function myGetCurrentMemberFunction(options){......}

Regarding your API-IMPORTS, it seems like you are working on FRONTEND…

import { currentMember } from 'wix-members'; 
import wixLocation from 'wix-location'; 
import wixUsers from 'wix-users'; 

But you do not import your exported backendfunction on your FRONTEND, as i can see…

import {myGetCurrentMemberFunction} from 'backend/xxxxxx.jsw}

BACKEND is not FRONTEND and FRONTEND is not BACKEND.

And why you do not use - - → CONSOLE-LOGs ???
If you would start to use them, you surely would be able to debug your code on your own.