I try to read a tsv file in node and already tried several libraries. Really strange, the pattern of errors remains the same, first I get this kind of error Error [ERR_REQUIRE_ESM]: require() of ES Module , after I downgrade the module that is recommended (which I also dont understand well, its quite inconvenient to be forced to downgrade packages in order to use them with the import statement.
After downgrading I get this error await d3_1.default.tsv('../data/file.tsv'); ^ TypeError: Cannot read properties of undefined
I tried already some libraries, d3 or d3-dsv and get same kind of errors, though I write the same code as in the docs, e.g. await d3.tsv('../data/file.tsv');