Skip to content

[1.20.x] Build task fail with typescript error #1806

Closed Answered by SquidDev
tmvkrpxl0 asked this question in Q&A
Discussion options

You must be logged in to vote

We make use of the recursive argument to fs.readdir, which requires either NodeJS v18.17.0 or v20.1.0.

I've upgraded node to v20.12.2 and did the same test. The result was same

Can you double check that the correct version of Node was on the path when doing that? This should definitely work. If so, can you run the following input in Node:

$ node
Welcome to Node.js v18.20.2.
Type ".help" for more information.
> (() => { const path = require("path"); require("fs").readdir(".github", {withFileTypes:true,recursive:true}, (x, e) => {for (const file of e) console.log(path.join(file.path, file.name)) }); })()

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@SquidDev
Comment options

Answer selected by tmvkrpxl0
@tmvkrpxl0
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1805 on April 24, 2024 17:02.