Skip to content
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 building and testing on macs #380

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Conversation

SjurSutterudSagen
Copy link
Contributor

Removing the Nx packages broke the build step on arm processors, due to the bug in npm with optional architecture dependencies. The same bug I've ran into several times when updating the Nx packages. This fixes those missing dependencies (had to delete node_modules and package-lock.

Also, running the tests after removing Nx, in a clean repo, failed on TypeErrors with getTextBy. This adds a temporary fix by downgrading testing-library/react to the previous major version.

Removing the Nx packages broke the build step on arm processors, due to
the bug in npm with optional architecture dependencies. The same bug
I've ran into several times when updating the Nx packages. This fixes
those missing dependencies (had to delete node_modules and package-lock.

Also, running the tests after removing Nx, in a clean repo, failed on
TypeErrors with getTextBy. This adds a temporary fix by downgrading
testing-library/react to the previous major version.
Copy link

sonarqubecloud bot commented Dec 2, 2024

@SjurSutterudSagen SjurSutterudSagen merged commit 7084330 into main Dec 2, 2024
8 checks passed
@SjurSutterudSagen SjurSutterudSagen deleted the fix/build-for-macs branch December 2, 2024 13:28
@runejo
Copy link
Contributor

runejo commented Dec 2, 2024

Nice, this also fixed the new workflow in #379 👍

@@ -15,7 +15,8 @@
"private": true,
"dependencies": {
"@uidotdev/usehooks": "^2.4.1",
"react-virtuoso": "^4.12.1"
"react-virtuoso": "^4.12.1",
"sass": "^1.81.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be under devDependencies.
Yesterday morning we talked about using https://www.npmjs.com/package/sass-embedded is it a better option? @michaelpande @SjurSutterudSagen

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.

3 participants