Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

Error while using uuid library in SvelteKit app

Writer Sebastian Wright

I'm struggling with using uuid library in SvelteKit. When I try to generate UUID then I got this error: "Cannot find module 'uuid' imported from ..."

import { v4 as uuid } from 'uuid';
export async function POST({ request }) { const uuidId = uuid(); // throws "Cannot find module 'uuid' imported from ..." return { };
}

I'm using this uuid npm package: @types/[email protected]

2 Related questions 4 How to load Google API client library with SvelteKit Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.