# Build.log showing error when publishing

**URL:** <https://forum.wixstudio.com/t/build-log-showing-error-when-publishing/76026>\
**Category:** Ask the community\
**Tags:** wix-auth, wix-data, wix-members-area, code, wix\
**Created:** [January 14, 2026, 12:47pm UTC](https://forum.wixstudio.com/t/build-log-showing-error-when-publishing/76026 "2026-01-14T12:47:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![doug-antill](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@doug-antill](https://forum.wixstudio.com/u/doug-antill)\
**Post date:** [January 14, 2026, 12:47pm UTC](https://forum.wixstudio.com/t/build-log-showing-error-when-publishing/76026/1 "2026-01-14T12:47:22Z")

</div>

**I’m having trouble with**  
When I try to publish my site I’m getting an error reported in the build.log

build.log

> ```javascript
> ------------------------------------------------------
> deploymentId: 11afe5a6-bf3e-41d6-a7f5-aa11b5f05855
> 14/01/2026, 12:37:25
> Status: Error
> ------------------------------------------------------
> [masterPage.js]: Cannot find module 'wix-auth' in 'public/pages/masterPage.js'
> 
> ```

masterPage.js

```javascript
import wixData from 'wix-data';
import { elevate } from 'wix-auth';
import { contacts } from 'wix-crm.v2';
import { badges } from 'wix-members.v2';
import { secrets } from 'wix-secrets-backend.v2';

```

It seems to be running ok in Preview, at least I can’t see anything going wrong.

It WAS working the last time I published a couple of weeks ago. Is it something I’m doing? or are dark forces at work 🙂

**Working in**  
Wix Editor

**Many thanks**

Doug

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [January 23, 2026, 12:38pm UTC](https://forum.wixstudio.com/t/build-log-showing-error-when-publishing/76026/2 "2026-01-23T12:38:17Z")

</div>

Nothing seems immediately wrong with the way the imports are written. Can you share more of the code?

Is it still happening after refreshing the editor?
