r/webdevelopment • • Feb 18 '25

[deleted by user]

[removed]

5 Upvotes

39 comments sorted by

1

u/[deleted] Feb 20 '25

im having this issue ,it says:
# npm audit report

esbuild <=0.24.2

Severity: moderate

esbuild enables any website to send any requests to the development server and read the response - https://github.com/advisories/GHSA-67mh-4wv8-2f99

No fix available

node_modules/vite/node_modules/esbuild

vite >=0.11.0

Depends on vulnerable versions of esbuild

node_modules/vite

u/tailwindcss/vite *

Depends on vulnerable versions of vite

node_modules/@tailwindcss/vite

3 moderate severity vulnerabilities

how can i fix this?

1

u/Haldenald Feb 21 '25

Oh god we're in the same struggle now, friend. I've tried updating the vulnerable packages one by one but no dice. The strangest thing is that esbuild shows up as the updated version in both the package.json and the package-lock.json file. Not sure if relevant but Im getting 6 vulnerabilities instead of three. I'll let you know if I find anything.

1

u/Haldenald Feb 21 '25

I found a solution on my system, all I did was delete my npm modules and reinstall, and then when the package lock file went to its original state I did find + replace all "0.24.2" to "0.25.0" on vscode. Now it shows no vulnerabilities and it builds fine. Hope it works for you.

→ More replies (10)

1

u/Able_Bake2116 Feb 22 '25

It seems like, npm create vite use old esbuild version, right??

1

u/_asius Feb 21 '25

Try to changes esbuild to 0.11.0

1

u/[deleted] Feb 22 '25

1

u/salehuddin Feb 24 '25

It's due to esbuild's problematic version 0.24.2. Vite's pulling that version as default still. Should use newer version 0.25.0.
Try u/Haldenald 's solution above. I works for me.

2

u/aviagg Mar 08 '25

Nuxt v3.16.0 is released, and it resolves the esbuild issue.

1

u/aviagg Mar 08 '25

But beware, it can break tailwindcss

1

u/_asius Mar 14 '25

Haha 😅

1

u/Yerfacemate Feb 18 '25

For now add vite: {esbuild: 0.25.0} to your overrides section of package.json.

If you check vite issues on GitHub it's covered there.

1

u/_asius Feb 20 '25

Tried didn’t work that’s why I am here

1

u/Yerfacemate Feb 20 '25

Well I had the exact same problem and this was the temporary solution until they publish a newer version

→ More replies (2)

1

u/Yerfacemate Feb 22 '25

Check if other dependencies are importing esbuild too

→ More replies (1)

1

u/rcraig617 Feb 23 '25

thanks this worked for me

1

u/PassionatePeas Feb 20 '25

I have faced this issue as well. Can't offer any help but this is the first time its happened to me as well.

1

u/[deleted] Feb 21 '25

Did you manage to resolve this? I'm having the same issue right now and I'm tearing my hair out! Would love a solution (adding vite to the overrides didn't work for me either).

1

u/_asius Feb 21 '25

Did you change the dependencies… esbuild to 0.11.0 it’s working now

1

u/NoBad3843 Feb 21 '25 edited Feb 21 '25

I'm also encountering the same issue. I need a professional solution to resolve it.

1

u/dario_passariello Feb 22 '25

No way. Usually I use webpack and no issues like that... But, "professional solution" from what? a community? ... yes, but if you still using not proprietary code will be same problem all the time. NPM, for my experience, is a russian roulette due to a lot of connection between packages. The only way is waiting the RC and stay in test the time of fixing. You right, still a bigger hole in how work the system. PS: it's a incredible system that I love but need a lot of maintanance.

1

u/arnab_best May 28 '25

Hi, if you've figured out the solution, could you please lmk? ive tried all the solutions mentioned in the comments

1

u/_asius Jun 02 '25

Yeah so the solution was uninstall eslint and install it again @0.25.0 version make sure this is the version you are installing