How to use 'wix-members-backend'

After I publish my site,get an error message such like this:
Cannot find module ‘wix-members-backend’ in ‘public/pages/ln2ld.js’

I just write one line in my code.Somebody tell me how to use this,please

import { authentication } from ‘wix-members-backend’

Can you show a pic of the page, where you have implemented this code?

-Did you place it on your frontend?
-Did you place it on a public-js-file?
-Did you place it on backend?

Where did you place the shonw code?

In your ERROR-LOG there you can find → in 'public /pages/ln2ld.js’ ← ???
Where did you place it one more time?
Where it normaly should be placed? → on backend, right? → RIGHT !

Hi @a66851771 :raised_hand_with_fingers_splayed:

The error is self-explanatory:

Cannot find module ‘wix-members- backend ’ in ’ public /pages/ln2ld.js’.

You’re trying to import a (Backend-Only) module to a public (Frontend) page, try importing a non-backend module instead.

import { authentication } from 'wix-members';

Hope this helps~!
Ahmad