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

chore: update postcss to fix node 17 error #2120

Closed
wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 4, 2022

This is just a proof of concept for a bug reported here: https://dhis2.atlassian.net/browse/LIBS-334

Node 17 has deprecated a particular style of subpath folder mapping for module exports (nodejs/node#40121). This means that packages that still do this kind of remapping can cause our build to fail on node 17, as Martin reported in the above issue.

In Martin's issue, it was postcss that was causing the issue. Postcss has fixed their remapping style in this release: https://github.com/postcss/postcss/releases/tag/8.2.12. Before that they were using the deprecated exports style (see this commit for the change: postcss/postcss@96faacb).

This branch updates postcss to version 8.2.12, which fixes the failure for me locally. So it seems to me that that's indeed the cause of this issue. (note that the build still doesn't work, a new unrelated bug causes it to still fail).

@ghost
Copy link
Author

ghost commented Jul 4, 2022

I'll close this PR as it's just a proof of concept.

@ghost ghost closed this Jul 4, 2022
@dhis2-bot
Copy link
Contributor

This pull request was closed.
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.

1 participant