Failed to resolve module specifier uuid

I’m trying to get my react project up and running on netlify but I keep getting this error with one of my modules as if it doesn’t exist. My import statement seems right based on the module’s docs, and I’ve installed it with npm which is about the extent that Googling this error for help tells you to do. Are there any other things I can look into?

@mike-benn You’ve been bitten by Vite’s inconsistencies.

See my explanation here for some background:

As explained in that post, if you run npm run build && npm run preview you’ll see the same thing locally.

So the perspective you should investigate is why that module isn’t being bundled by Vite.

Ah, yes that recreated the issue locally. I’m not gonna lie, I don’t know what I’m doing lmao, do you have any initial troubleshooting tips or things to look at first?

I don’t know what your solution is off the top of my head, or I’d have provided it.

You should poke around in the Vite documentation if you’ve not read it already, perhaps:

1 Like