-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Builds Don't Work with PostCSS After Update #11565
Comments
I'm experiencing the same issue |
This is related to postcss/postcss-safe-parser#29. Which is actually entirely CRA's fault because It looks like the work fixing this issue was already merged in July (PostCSS was updated to version without this Node 17 issue in #11121, and |
Is there any fix for this? |
@timashov, rolling back to Node 16.8.0 helped me. |
@kanto2113 @dantman thank you for documenting this issue. I'm in the exact same boat, and am eagerly awaiting a possible solution. |
Nuked my node modules and yarn.lock and ran |
Just remove yarn.lock & node_modules & run |
The solution of removing yarn.lock and node_modules does not work for me. I get a large number of these errors, and Yarn fails:
|
@FelicitusNeko what version of node are you on? |
@MatthewPardini I switched to Node 17.0.1 using NVM and gave it a try. No good. Also, this is using Yarn 3.0.2. |
Having this issue, wiping out node_modules didn't work, the only solution that's worked for me is |
Package subpath './lib/parser' is not defined by "exports" in /home/node/app/node_modules/postcss/package.json I am getting an error like this today suddenly. |
i also got this issue either |
Were you able to find resolution? |
I did the same as people above, migrate back to node 16.8.0 |
Please fix this :) |
on node |
High chance it will break the application, i recommend you never do that to your project |
@Senbonzakura1234 The application is already broken. I don't understand why one would hesitate to do this on a fresh cra app ?? |
@FelicitusNeko interesting. My yarn was two major versions back, 1.22.10. Same node version though. Older yarn is probably the difference |
has anyone found a fix for this? |
|
Why is this closed? I don't see a fix... Only some pretty risky workarounds |
This actually worked for me. I can run the |
I was receiving I have resolved it on node version 17.4.0 after I upgraded react, and nextjs using: |
this worked for me. |
i downgraded version node, and worked |
npm audit fix --force also fixed this issue for me |
My node was 17.0. Had to get LTS If you don't have nvm:
|
Can we get a real fix and not downgrading Node version? Current LTS is now 18.13.0. |
This worked for me |
Upgrading should solve your issue:
|
I used these commands to deploy to production on Vercel. Simply insert it in the "Install Command" field.
|
Was this ever fixed? |
Ok so I actually got pass this issue but updating to postcss": "8.2.12" |
this works for me |
Yes, it works for me too. |
Worked for me as well. |
In Node v17:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /tmp/workspace/node_modules/postcss-safe-parser/node_modules/postcss/package.json
In earlier versions of Node, this was just a deprecation warning:
Update this package.json to use a subpath pattern like "./*".
The text was updated successfully, but these errors were encountered: