Skip to content

Conversation

@segevfiner
Copy link

Suprisingly we had pkg code actually hit the ERR_MODULE_NOT_FOUND on Node.js 22, but the workaround for Windows was missing there...

BTW it might be better to use require('url').fileURLToPath() for this?

Suprisingly we had pkg code actually hit the ERR_MODULE_NOT_FOUND on Node.js 22, but the workaround for Windows was missing there...

BTW it might be better to use `require('url').fileURLToPath()` for this?
@mcollina
Copy link
Member

Can you look at the failing tests?

Copy link
Author

@segevfiner segevfiner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This project doesn't use a lock file and the latest version of @yao-pkg/pkg seems to not work with Node.js<=16. Something about not finding fs.promises.access.

@segevfiner
Copy link
Author

Hrmm the tests passed locally for me... So now we have some test that's only failing in CI?

@mcollina
Copy link
Member

I don't understand, this project CI is 18+.

@segevfiner
Copy link
Author

segevfiner commented Jul 27, 2025

The pkg.config.js said to build pkg binaries with older Node.js versions. I updated this in the PR. But now something else is failing only in CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants