Resolving Class constructor error
Hello, I am currently trying to port a small test api from NodeJS to Deno. This code uses only NPM packages and is a direct copy past from the previous project besides the "npm:" addition to packages. Currently when running the code, there are no errors on compile, only during run time when trying to create the postgress client, which seems to come from the postgress library. I have not been succesful in finding a solution either here in discord or online. Only semi relevant would be changing the compile target which I also tried but got the following error This was using the example compiler options from https://firstname.lastname@example.org/advanced/typescript/configuration Attached is the code as in the main.ts file, along with the error produced when calling the function. Thank you Error: Edit: While there is a deno port of drizzle it is no longer up to date. And the Postgres deno library is not compatible with the npm drizzle library.
Based on the documentation, it seems like you're trying to use an npm package directly in Deno, which might not work as expected due to differences in the runtime environments of Node.js and Deno. Deno has its own way of handling database connections, and it provides a Postgres client that you can use. Here's an example of how to connect to a Postgres database using Deno: You can then execute SQL queries like this: And don't forget to close the connection when you're done: To run this example, you would use the Deno CLI like this: Please note that the
--allow-env flags are necessary to allow network access and access to environment variables, respectively.
As for the TypeScript configuration, Deno has its own TypeScript runtime and does not use
If you're still having issues, it would be helpful to know more about the specific error message you're encountering. The error message you provided seems to suggest that there's an issue with the way the
Socket class is being used, but without more context, it's hard
to provide a specific solution.
KV list is returning an empty iterator, but data is there and gettable via getHello. To simplify things, I am setting a key of `["accounts", account.name]` but when I try to get Read permission & NPM importsHello, I'm using `--allow-read=.` to allow a script to read files in the current directory. The scriWebSocket connections killing setInterval()Hey Deno friends, it appears that websocket connections are somehow stopping the execution of setIntjsx in jsAll of my files containing JSX are in `.js` files. Is there an easy fix for this when running?http errorI need help because I have a service that has more than 1 million requests per day and for about 7 ddoes Deno vscode support nesting `deno.json`?There is a project I'm working on has nesting `deno.json` files. The parent `deno.json` is a bit out