-
Notifications
You must be signed in to change notification settings - Fork 271
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
Build issues with deasync #972
Comments
Hi, the addition on "deasync": "^0.1.28", to the package-json made our ndoe_modules 3 times bigger and our 30MB extension to 80MB extension. |
@azchohfi, that is the problem related to missing binaries as I see. |
@azchohfi I noticed binaries (node v19-21) that were uploaded 3 days ago. @sverdlov93 upgrading |
I'm still having issues with newer version of this lib. The packages are now installing, but they fail to run:
It is installing version 0.1.29 of deasync. I've tried forcing it to 0.1.28, but then it fails to build. Version 0.1.29 has the node files in here: |
The specific issue was related to Jest itself. I had to add 'node' do the moduleFileExtensions in the jest.config.js. |
Ok, solution is to avoid the deasync code paths completely. Instead of doing: let tr: ttm.MockTestRunner = new ttm.MockTestRunner(testPath, taskJsonPath)
await tr.runAsync() Do: let tr: ttm.MockTestRunner = new ttm.MockTestRunner()
await tr.LoadAsync(testPath, taskJsonPath);
await tr.runAsync() It will completelly avoid calling deasync, as it won't call getNodePathSync |
Environment
azure-pipelines-task-lib version: 4.6.0
Issue Description
Fails to npm install. Seems to be related to deasync being a dependency now, and they are not working well on node 20.
Expected behaviour
Works just like 4.5.0, and builds fine on node 20.
Actual behaviour
Fails to restore packages on node 20.
Steps to reproduce
Logs
The text was updated successfully, but these errors were encountered: