-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not running with Deno #157
Comments
I wonder if the problem is fixed by yoctocolors v2.0.0 published last week. |
Then various other problems with better-sqlite3
Downloading the .node results in a new error :
|
Thanks for testing this on Deno. Working around yoctocolors should be straightforward - but we'll need better-sqlite3 to work (or find a different sqlite3 library). I see https://github.com/denodrivers/sqlite3 as an option - but I think we'd need to find a library that works with both node and deno. |
https://github.com/tursodatabase/libsql or https://db0.unjs.io/ might be an option. |
It would also be nice if it worked with Bun, but it gives the same error of |
Also, side note, related to those more modern node engines : I'm using both Motis and node-GTFS. Motis has a GTFS routing engine included, Nigiri. Nigiri takes a few seconds to load into memory a GTFS dataset that node-GTFS takes a few minutes to load into its DB. I wonder why such a difference. That's also why I wanted to try bun and deno. Performance differences can come from multiple factors : features that Nigiri doesn't have ; quicker getters after a longer import ; big bottelneck in the import functions ; node botttelneck vs Nigiri's C++ ; etc. I'm not expert enough to find what makes the difference, but it could be an inspiration to more knowledgeable people. |
Thanks for these details - I'll check out Nigiri to see if there are ideas on how to speed up import. |
Deno 1.45 has node compatibility improvements that are told to target sqlite3. https://deno.com/blog/v1.45#nodejs-compatibility-improvements |
Thanks for letting me know - I'll check into that and try it out. |
Hi, just an update to say that I almost managed to get it run on Deno's latest. I had to clone node-gtfs to change the references to libsql, a drop-in replacement do better-sqlite3. It started to import the GTFS but failed on one record of one of the CSV. I didn't go further though, just a partial update about the state of node-gtfs on deno :) |
Thanks for letting me know about that. I created a branch that uses libsql to try it out: https://github.com/BlinkTagInc/node-gtfs/tree/feature%2Flibsql I had to make one adjustment: the "name" field of the database object wasn't being populated, so I added this line: https://github.com/BlinkTagInc/node-gtfs/blob/feature/libsql/src/lib/db.ts#L10 and all tests pass. Can you check this out and see what you think and if it works on Deno? Any other ideas or suggestions? |
Hi, just to point out that node-gtfs does not run with Deno 1.41.2.
It's due at least to this problem :
I'm not saying it has to run with Deno, but this issue will serve for future people trying it like me.
The text was updated successfully, but these errors were encountered: