Deno compile: LoadLibraryExW failed

Hi fellow Deno + Turso devs, I need help. I am getting Uncaught (in promise) TypeError: LoadLibraryExW failed (attached screenshot) on running the compiled version (executable) with Using drizzle w/ all permission enabled (-A) Using this on Deno v2.2.8 NOTE: On dev mode, it works fine! Here is the main code,
import { createClient } from "npm:@libsql/client/node";
import { drizzle } from "npm:drizzle-orm/libsql";
import * as schema from "./schema.ts";

const dbUrl = "file:local.db";

const client = createClient({
url: dbUrl,
});

export const sqliteDB = drizzle(client, {schema});
import { createClient } from "npm:@libsql/client/node";
import { drizzle } from "npm:drizzle-orm/libsql";
import * as schema from "./schema.ts";

const dbUrl = "file:local.db";

const client = createClient({
url: dbUrl,
});

export const sqliteDB = drizzle(client, {schema});
Help and suggestion appreciated.
No description
4 Replies
marvinh.
marvinh.2w ago
This seems like an issue that cannot be solved through sharing opinions. Therefore I would treat it as a bug in Deno. Can you file an issue for that here https://github.com/denoland/deno/issues ?
GitHub
Issues · denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
realChakrawarti
realChakrawartiOP2w ago
Sure, will do that.
realChakrawarti
realChakrawartiOP2w ago
GitHub
Issues · denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
realChakrawarti
realChakrawartiOP2w ago
GitHub
Add support for node native addons / napi / FFI in deno compile ...
Discussed in #23255 Originally posted by babakfp April 6, 2024 Hi 👋 parcel-bundler/lightningcss#712 Based on this comment parcel-bundler/lightningcss#712 (comment) and this: (I used this library ht...
GitHub
Add flag that causes deno compile to not use an in-memory file sy...
This would unlock Node API support (#23266) and allow #26175 to work. It should be resilient to that extraction failing midway through and it should skip extraction if previously done. An issue wit...

Did you find this page helpful?