Skip to content

fix: Add special case for Serial Port binary (.node) modules#415

Merged
styfle merged 2 commits intovercel:mainfrom
RogerHardiman:main
May 8, 2024
Merged

fix: Add special case for Serial Port binary (.node) modules#415
styfle merged 2 commits intovercel:mainfrom
RogerHardiman:main

Conversation

@RogerHardiman
Copy link
Contributor

Tested with prebuilds and compiling serialport from source

Tested with prebuilds and compiling serialport from source
@RogerHardiman RogerHardiman requested review from ijjk and styfle as code owners May 3, 2024 11:31
@RogerHardiman RogerHardiman changed the title Add special case for Serial Port binary (.node) modules fix: Add special case for Serial Port binary (.node) modules May 3, 2024
@styfle
Copy link
Member

styfle commented May 4, 2024

Please add an integration test in ./test/integration to confirm this works as expected, thanks!

@RogerHardiman
Copy link
Contributor Author

Good idea to add an integration test. I noticed another one of the binary .node special cases had an integration test.

@RogerHardiman
Copy link
Contributor Author

Just a note to myself that currently one integration test fails with the error below before I add my new integration test

  ● should correctly trace and correctly execute sharp-pnpm.js

    Command failed: corepack enable && pnpm i



Test Suites: 1 failed, 3 passed, 4 total
Tests:       1 failed, 1368 passed, 1369 total
Snapshots:   0 total
Time:        530.549 s
Ran all test suites.

@RogerHardiman
Copy link
Contributor Author

This has been updated with an integrating test.
The test code (serialport.js) throws an exception if the .node modules are missing,

Copy link
Member

@styfle styfle left a comment

Choose a reason for hiding this comment

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

Thanks!

@styfle styfle merged commit e001d05 into vercel:main May 8, 2024
@github-actions
Copy link

github-actions bot commented May 8, 2024

🎉 This PR is included in version 0.26.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

styfle added a commit to vercel/next.js that referenced this pull request May 16, 2024
panteliselef pushed a commit to panteliselef/next.js that referenced this pull request May 20, 2024
ForsakenHarmony pushed a commit to vercel/next.js that referenced this pull request Aug 16, 2024
gijs-martens pushed a commit to gijs-martens/next.js that referenced this pull request Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants