# My "wix-members-backend" module is empty

**URL:** <https://forum.wixstudio.com/t/my-wix-members-backend-module-is-empty/59067>\
**Category:** Ask the community\
**Tags:** wix-members-backend, wix-members-area, question, code, wix\
**Created:** [May 8, 2024, 3:45pm UTC](https://forum.wixstudio.com/t/my-wix-members-backend-module-is-empty/59067 "2024-05-08T15:45:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kricke73](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/kricke73/32/31574_2.png) [@kricke73](https://forum.wixstudio.com/u/kricke73)\
**Post date:** [May 8, 2024, 3:45pm UTC](https://forum.wixstudio.com/t/my-wix-members-backend-module-is-empty/59067/1 "2024-05-08T15:45:17Z")

</div>

**Question:**  
What code shall i put into the wix-members-backend.js file because now it´s empty and with that I get a “Cannot find wix-members-backend module” error.

**Product:**  
Wix Editor

**What are you trying to achieve:**  
I want to use the member backend for different functions but it doesn´t work without code in the wix-members-backend js-file.

**What have you already tried:**  
I have Googled a lot to find the code for wix-members-backend but with no result.

---

<div class="post-metadata">

**Author:** ![player.zero.official](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/player.zero.official/32/106525_2.png) [@player.zero.official](https://forum.wixstudio.com/u/player.zero.official)\
**Post date:** [May 9, 2024, 10:22pm UTC](https://forum.wixstudio.com/t/my-wix-members-backend-module-is-empty/59067/2 "2024-05-09T22:22:07Z")

</div>

Can you show your code and explain what you think led to the error? It would help a lot

---

<div class="post-metadata">

**Author:** ![kricke73](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/kricke73/32/31574_2.png) [@kricke73](https://forum.wixstudio.com/u/kricke73)\
**Post date:** [May 10, 2024, 10:50am UTC](https://forum.wixstudio.com/t/my-wix-members-backend-module-is-empty/59067/3 "2024-05-10T10:50:02Z")

</div>

Like I wrote there are no code. Wix can´t find wix-members-backend and that isn´t a module you can install. You have to create a json or web file and write in a code. My question is therefore: What is the default code for wix members backend?

---

<div class="post-metadata">

**Author:** ![player.zero.official](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/player.zero.official/32/106525_2.png) [@player.zero.official](https://forum.wixstudio.com/u/player.zero.official)\
**Post date:** [May 10, 2024, 10:44pm UTC](https://forum.wixstudio.com/t/my-wix-members-backend-module-is-empty/59067/4 "2024-05-10T22:44:19Z")

</div>

I suppose you are attempting to call wixMembers from a backend module (.jsw or .js) and the module is reporting that wixMembers does not exist. Meaning you have a function within this module calling wixMembers, but cant do anything with it.

If so, have you checked to see if you have imported the API before calling it? WixMembers is “pre-installed”, i guess you would say, and the functions associated with the API can only be used, front end or backend, after using an import statement like below

```javascript
Import {members} from "wix-members-backend"

//only works on backend modules

```

Using the above, you would be able to access the members object in any function after this statement

---

<div class="post-metadata">

**Author:** ![kricke73](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/kricke73/32/31574_2.png) [@kricke73](https://forum.wixstudio.com/u/kricke73)\
**Post date:** [May 11, 2024, 10:28am UTC](https://forum.wixstudio.com/t/my-wix-members-backend-module-is-empty/59067/5 "2024-05-11T10:28:50Z")

</div>

> [@player.zero.official](#):
>
> `Import {members} from "wix-members-backend"`

No that code didn´t work either (not found) so I guess that I accidently have deleted the pre-installed WixMembers file. Thats why I wonder what code I shall write in a new module file to make it become WixMembers backend?
