blinkdb-js / blinkdb

🗃️ An in-memory JS database optimized for large scale storage on the frontend.
https://blinkdb.io
MIT License
119 stars 10 forks source link

benchmarks don't run #37

Closed retorquere closed 10 months ago

retorquere commented 10 months ago

When I run npm run start in the benchmarks folder, I get

> start
> ts-node ./src/index.ts

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/emile/github/blinkdb/packages/benchmarks/src/index.ts
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:203:36)
    at defaultLoad (node:internal/modules/esm/load:143:22)
    at async nextLoad (node:internal/modules/esm/hooks:749:22)
    at async nextLoad (node:internal/modules/esm/hooks:749:22)
    at async Hooks.load (node:internal/modules/esm/hooks:382:20)
    at async MessagePort.handleMessage (node:internal/modules/esm/worker:199:18) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
npm ERR! Lifecycle script `start` failed with error:
npm ERR! Error: command failed
npm ERR!   in workspace: @blinkdb/benchmarks
npm ERR!   at location: /Users/emile/github/blinkdb/packages/benchmarks
retorquere commented 10 months ago

What version of node/ts-node do you use? I have been googling around for a solution but haven't found anything yet.

retorquere commented 10 months ago

The benchmarks run on node 16.

maradotwebp commented 10 months ago

Yep, apparently this does not run on later versions like v18 or v20. I'll take a look and update this to work with the newest version.

maradotwebp commented 10 months ago

Fixed by switching to tsx.