-
Notifications
You must be signed in to change notification settings - Fork 287
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
fix(deps): update webpack to v5.94.0, terser to v5.33.0 #1213
Conversation
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like macos is failing to install dependencies.
We might need to update canvas
as well.
Thank you for running CI, and helping for fixing this issue. 😄 I've updated canvas to https://github.com/Automattic/node-canvas/releases/tag/v3.0.0-rc2, hopefully it fixes issues with macOS, but for "Node 20 and ubuntu-latest", it seems like there is another issue. |
Looks like updating canvas didn't help. Perhaps we need to install |
Oh yeah, you can see their CI has it here: |
Are you able to run coverage locally? The failure makes it seem related to this PR.
Perhaps you could start with a new PR that doesn't upgrade webpack and only gets CI passing? |
When I first started this PR, I was able to run
Yeah, that's a good idea, to start simple and "small" as possible. Priority is to first fix CI, then we'll see. at node_modules/webpack/lib/FileSystemInfo.js:1676:22
at processQueue (node_modules/webpack/lib/util/processAsyncTree.js:50:4)
/home/theoludwig/Documents/open-source/ncc/node_modules/webpack/lib/FileSystemInfo.js:1677
lexer.init.then(() => {
^
TypeError: Cannot read properties of undefined (reading 'then')
at /home/theoludwig/Documents/open-source/ncc/node_modules/webpack/lib/FileSystemInfo.js:1677:19
at processQueue (/home/theoludwig/Documents/open-source/ncc/node_modules/webpack/lib/util/processAsyncTree.js:50:4)
at processTicksAndRejections (node:internal/process/task_queues:77:11) I will check later, when I have time, what could be the root cause of the issue. |
Yes, ideally you could run |
Yep! (was just blindlessly thinking it was only related to CI config problems 😅) After debugging for a while, I found that the error might be related to a race condition happening when I first tried to run each test file separately, like: So I tried with jest Just to be 100% sure, that the CI problem is resolved, I enabled GitHub Actions on my fork, and ran it here: https://github.com/theoludwig/ncc/pull/1 The PR is here: #1216 |
Fix problems with CI and tests. More context: #1213 (comment)
@theoludwig Nice find! 🕵️ The other PR was merged so feel free to update this one, thanks! 🎉 |
Report too large to display inline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, thanks! 🎉
Attempt to fix CI, and update webpack and terser to their latest version.
[email protected]
to fix minfy with negatedin
statements #1194