# NPM packages not working

**URL:** <https://forum.wixstudio.com/t/npm-packages-not-working/68829>\
**Category:** Ask the community\
**Tags:** code\
**Created:** [February 17, 2025, 3:33pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829 "2025-02-17T15:33:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Galvez](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/miguel_galvez/32/89834_2.png) [@Miguel\_Galvez](https://forum.wixstudio.com/u/Miguel_Galvez)\
**Post date:** [February 17, 2025, 3:33pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/1 "2025-02-17T15:33:52Z")

</div>

Suddenly none of my installed npm packages are working. The code editor is flagging them with errors:

 ![Screenshot 2025-02-17 at 9.33.07 AM](https://us1.discourse-cdn.com/wix/original/3X/9/8/98bde4ff2ba10768f3a3a025950a5e6422df4f4e.png)

Is anyone else having the same issue?

---

<div class="post-metadata">

**Author:** ![onemoretime](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/onemoretime/32/104023_2.png) [@onemoretime](https://forum.wixstudio.com/u/onemoretime)\
**Post date:** [February 17, 2025, 3:41pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/2 "2025-02-17T15:41:57Z")

</div>

Hi, @Miguel_Galvez !!

Just to be sure, please check if npm is installed. Could it have been removed or disappeared after installation? 🙃

---

<div class="post-metadata">

**Author:** ![Miguel\_Galvez](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/miguel_galvez/32/89834_2.png) [@Miguel\_Galvez](https://forum.wixstudio.com/u/Miguel_Galvez)\
**Post date:** [February 17, 2025, 3:43pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/3 "2025-02-17T15:43:20Z")

</div>

I checked. They are all there.

 ![Screenshot 2025-02-17 at 9.42.52 AM](https://us1.discourse-cdn.com/wix/original/3X/0/0/00fbde6b9446e1f52b296290a1cee43264c84d92.png)

---

<div class="post-metadata">

**Author:** ![onemoretime](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/onemoretime/32/104023_2.png) [@onemoretime](https://forum.wixstudio.com/u/onemoretime)\
**Post date:** [February 17, 2025, 3:46pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/4 "2025-02-17T15:46:27Z")

</div>

I just checked, and I saw the same red wavy line in my environment as well. 😮

---

<div class="post-metadata">

**Author:** ![Miguel\_Galvez](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/miguel_galvez/32/89834_2.png) [@Miguel\_Galvez](https://forum.wixstudio.com/u/Miguel_Galvez)\
**Post date:** [February 17, 2025, 3:48pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/5 "2025-02-17T15:48:20Z")

</div>

Good to know I am not alone! 🤣

---

<div class="post-metadata">

**Author:** ![onemoretime](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/onemoretime/32/104023_2.png) [@onemoretime](https://forum.wixstudio.com/u/onemoretime)\
**Post date:** [February 17, 2025, 3:50pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/6 "2025-02-17T15:50:53Z")

</div>

@Miguel_Galvez , We need to check whether this error-like display is just a visual issue or if the code is actually not being loaded properly. Based on your tests, what’s the result? Does it still work despite the error-like display, or is the function completely broken? If it’s truly not working, it might be worth reporting this issue. 🙃 Well, if such a catastrophic issue were really happening, I believe Wix would have already noticed and started addressing it…

---

<div class="post-metadata">

**Author:** ![Miguel\_Galvez](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/miguel_galvez/32/89834_2.png) [@Miguel\_Galvez](https://forum.wixstudio.com/u/Miguel_Galvez)\
**Post date:** [February 17, 2025, 4:01pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/7 "2025-02-17T16:01:37Z")

</div>

I checked and my code is not working.

---

<div class="post-metadata">

**Author:** ![onemoretime](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/onemoretime/32/104023_2.png) [@onemoretime](https://forum.wixstudio.com/u/onemoretime)\
**Post date:** [February 17, 2025, 4:29pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/8 "2025-02-17T16:29:27Z")

</div>

Ok…

Honestly, I don’t have time to confirm it myself right now, but I will report it to the manager and Wix team @noahlovell@amandam for now.

---

<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:** [February 17, 2025, 4:31pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/9 "2025-02-17T16:31:13Z")

</div>

Hey! Taking a look 🙂 Will update when I have more info.

If you have any more info - e.g. the site it happens on/if this is a backend vs. page code file, that would be a huge help.

**EDIT** : made a quick test and can replicate, although the code is still running correctly. It seems visual, but happy to take with the team 🙌

---

<div class="post-metadata">

**Author:** ![docmalc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/docmalc/32/12292_2.png) [@docmalc](https://forum.wixstudio.com/u/docmalc)\
**Post date:** [February 17, 2025, 6:29pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/10 "2025-02-17T18:29:22Z")

</div>

I’m having this issue too. It started happening around 1am EST and I thought it was a fluke. ALL of my backend npm’s that I’ve been using are saying the same as this sendgrid npm “Cannot find module ‘@sendgrid/mail’ or its corresponding type declarations.”

This isn’t just visual - its actually not pushing emails (that have previously been working) anymore.

Please help! =)

![image](https://us1.discourse-cdn.com/wix/original/3X/9/4/944fae2e77089b2c0e6b1e48a961fad298515634.png)

---

<div class="post-metadata">

**Author:** ![docmalc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/docmalc/32/12292_2.png) [@docmalc](https://forum.wixstudio.com/u/docmalc)\
**Post date:** [February 17, 2025, 6:36pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/12 "2025-02-17T18:36:54Z")

</div>

Definitely not visual, my @sendgrid/mail npm has been working up until around 1am EST. I thought it was a fluke and went to bed but none of my backend (.jsw and .js) npms are working including @google-cloud/storage, etc etc. I put a screenshot down below.

Any word back on the Wix team working on this?

---

<div class="post-metadata">

**Author:** ![Miguel\_Galvez](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/miguel_galvez/32/89834_2.png) [@Miguel\_Galvez](https://forum.wixstudio.com/u/Miguel_Galvez)\
**Post date:** [February 17, 2025, 9:34pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/13 "2025-02-17T21:34:04Z")

</div>

I can also confirm that it is not just visual. Most of my code is broken, and I think it is due to the fact that none of my npm backend packages are working.

---

<div class="post-metadata">

**Author:** ![docmalc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/docmalc/32/12292_2.png) [@docmalc](https://forum.wixstudio.com/u/docmalc)\
**Post date:** [February 17, 2025, 9:40pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/14 "2025-02-17T21:40:00Z")

</div>

Its frustrating because I’ve tried to contact customer care but the bot only allows me to open a trouble ticket and not chat with a rep. Its been 4+ hours since I opened trouble ticket and 3+ hours since it was brought to attention on here.  
Clearly its not isolated and not being able to connect to npms cripples a site. =\

---

<div class="post-metadata">

**Author:** ![Miguel\_Galvez](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/miguel_galvez/32/89834_2.png) [@Miguel\_Galvez](https://forum.wixstudio.com/u/Miguel_Galvez)\
**Post date:** [February 17, 2025, 10:14pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/15 "2025-02-17T22:14:43Z")

</div>

Same here. I opened a ticket 6 hours ago and I only got a generic customer support email requesting more specific information to try to replicate the problem. In the meantime my site remains broken.

---

<div class="post-metadata">

**Author:** ![docmalc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/docmalc/32/12292_2.png) [@docmalc](https://forum.wixstudio.com/u/docmalc)\
**Post date:** [February 17, 2025, 10:56pm UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/16 "2025-02-17T22:56:57Z")

</div>

I decided to build a work around using “fetch” which is basically the same thing. Honestly, I didn’t really like having to depend on npms from the start for this very reason.

---

<div class="post-metadata">

**Author:** ![Miguel\_Galvez](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/miguel_galvez/32/89834_2.png) [@Miguel\_Galvez](https://forum.wixstudio.com/u/Miguel_Galvez)\
**Post date:** [February 18, 2025, 2:30am UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/17 "2025-02-18T02:30:23Z")

</div>

Unfortunately, that’s not an option for me. I use some complex libraries that my code is dependent upon. I can’t believe that Wix has not acknowledge yet this problem.

---

<div class="post-metadata">

**Author:** ![onemoretime](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/onemoretime/32/104023_2.png) [@onemoretime](https://forum.wixstudio.com/u/onemoretime)\
**Post date:** [February 18, 2025, 3:12am UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/18 "2025-02-18T03:12:28Z")

</div>

Good morning! I checked again after waking up to see if the error was still occurring, and I found that the red wavy line was still appearing under the package name. So, I decided to run a quick experiment. I happened to come across a `web.js` file that contained a function using the `CryptoJS` package to hash text, so I tried using it in the frontend page code.

As a result, it seemed to work correctly without any errors. Based on my environment, my test results were the same as what **noahlovell** reported. However, this is just one test using a single package. The results might be different if multiple packages are used, if different types of packages are involved, or if the code is run in a `.jsw` or `.js` file instead of `web.js`.

That’s why I still trust the reports from **Miguel** and **docmalc**. I don’t think their skills are lacking, and if previously working code suddenly stops functioning for both of them at the same time, it’s natural to suspect that something has gone wrong. In fact, the appearance of the red wavy line seems to be a common issue for all of us.

I suggest that both of you try loading a different simple npm package—just one—and run it in `web.js` to see if it works. In situations like this, it’s important to fix the conditions and test with the simplest possible scenario.

By the way, are your files `web.js`, `.jsw`, or `.js`? 🙃

---

<div class="post-metadata">

**Author:** ![docmalc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/docmalc/32/12292_2.png) [@docmalc](https://forum.wixstudio.com/u/docmalc)\
**Post date:** [February 18, 2025, 4:12am UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/19 "2025-02-18T04:12:14Z")

</div>

> [@onemoretime](#):
>
> noahlovell

Thanks for your response.  
I’m not very familiar with web.js and don’t have the time to make sure I’m writing it correctly with the function calls and so forth to troubleshoot this on my end.

However, I did try and test an email send via @sendgrid/mail npm via “Preview mode” and although the red squiggly line “Cannot find module” error still shows, it did seem to still work and send the email.

I’m still concerned because my clients were definitely having issues this morning and @sendgrid had no records of the emailSend calls. My test just now was done in Wix “Preview” environment and not on the live site. I didn’t build the ability to test sandbox data in a live environment so I can’t test on live site due any actions done will affect clients’ clients and their data.

I’d feel better if we could get some concrete answers from tech support at least acknowledging the issue and informing us of the reach the issue has.

I appreciate your help.

Thanks

Edit: all of my backend code is written in .jsw and .js files. The npm import error is showing on both the .jsw and .js files including @google-cloud/storage and all other npms.

---

<div class="post-metadata">

**Author:** ![Baksheesh](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@Baksheesh](https://forum.wixstudio.com/u/Baksheesh)\
**Post date:** [February 18, 2025, 4:19am UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/20 "2025-02-18T04:19:21Z")

</div>

I have a backend .jsw file that used the qrcode npm. I can see the npm is installed, but in Editor it shows a squiggly red line error (Cannot find module) on the line

```javascript
import QRCode from 'qrcode';

```

However, when I tested the code in Preview mode it still worked.

---

<div class="post-metadata">

**Author:** ![docmalc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/docmalc/32/12292_2.png) [@docmalc](https://forum.wixstudio.com/u/docmalc)\
**Post date:** [February 18, 2025, 4:22am UTC](https://forum.wixstudio.com/t/npm-packages-not-working/68829/21 "2025-02-18T04:22:47Z")

</div>

In Preview mine worked but my concern is it working on a live site. I’ve had issues in the past (unrelated) where it worked fine in Preview mode however on the live site it would not.

[Next page](https://forum.wixstudio.com/t/npm-packages-not-working/68829.md?page=2)
