nermal
nermal5mo ago

Error: Cannot find module '@alloc/quick-lru'

No description
2 Replies
nermal
nermalOP5mo ago
No idea how i can fix this ~ this is a starter project created using deno run -A -r https://fresh.deno.dev it happens on a vps :3 any idea how i can fix this ?
Deno AI Helper
Deno AI Helper5mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the error message you've provided, it seems like you're trying to import a module named @alloc/quick-lru which cannot be found. In Deno, importing modules is typically done by specifying the full URL of the module, unlike in Node.js where you might use package names like @alloc/quick-lru. If you're trying to import a third-party module in Deno, ensure that you are using the correct URL for the import statement. Please note that this advice is not based on the Deno documentation, and I would recommend double-checking the accuracy of this advice and ensuring that you are following the correct import conventions for Deno. If @alloc/quick-lru is a Node.js package, it will not be directly compatible with Deno as Deno does not use the Node.js module resolution system. You would need to find a Deno-compatible module or a CDN that provides an ESM version of the package.