-
-
Notifications
You must be signed in to change notification settings - Fork 12
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 Node v17 Release #29
Comments
Try to update |
This version of |
Do you use Can you show PostCSS versions from |
Bump, having the same issue and our website is down in production till there is a fix |
Same issue here. Started about 2 hours ago when I tried to re-deploy my react website. |
@RedHairring @kanto2113 what PostCSS version do you use? Check |
@ai
|
@kanto2113 call |
@kanto2113 seems like you are using PostCSS 7, which is not supported anymore because PostCSS 8 was released around 2 years ago. Create React App has system problem with maintaince. As I know, PostCSS 8 migration was still not release. I do not really like to fixing my old releases because of CRA maintainers (it is not fair that I am working for them). But if somebody sends a well-tested PR to |
Unfortunately there's no point to that. It looks like CRA has already updated PostCSS to v8 and also removed |
Is there any fix for this? |
@Timashov nope. Only eject the configs and avoid using CRA in the future. |
Ugh, I'm in the same boat.
@ai: you have my sympathy. I really appreciate all the time, energy, and hard work you put into maintaining this and other packages. I'm donating to support your work now: https://opencollective.com/postcss/contribute |
The fix can be applied to |
Technically CRA does not pin PostCSS. They pin the following: "postcss-flexbugs-fixes": "4.2.1",
"postcss-loader": "3.0.0",
"postcss-normalize": "8.0.1",
"postcss-preset-env": "6.7.0",
"postcss-safe-parser": "5.0.2", And PostCSS comes in indirectly:
And Though I will note that |
Node のバージョンが v16.13.0 だと以下のようなエラーが出てビルドに失敗するため、一旦 Node のバージョンを下げることで対応する ``` (node:3713) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /tmp/workspace/node_modules/postcss-safe-parser/node_modules/postcss/package.json. Update this package.json to use a subpath pattern like "./*". ``` react-scripts のバージョン(4.0.3)が上がるまで待つしかない……。 詳しくは以下のページを確認してください - postcss/postcss-safe-parser#29 - facebook/create-react-app#11565
Node のバージョンが v16.13.0 だと以下のようなエラーが出てビルドに失敗するため、一旦 Node のバージョンを下げることで対応する ``` (node:3713) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /tmp/workspace/node_modules/postcss-safe-parser/node_modules/postcss/package.json. Update this package.json to use a subpath pattern like "./*". ``` react-scripts のバージョン(4.0.3)が上がるまで待つしかない……。詳しくは以下のページを確認してください - postcss/postcss-safe-parser#29 - facebook/create-react-app#11565
yes, @Timashov downgrade your node version to 16 |
Still occuring |
Same issue here. Currently bypassing it by downgrading to Node LTS (16). The thing is, the project I'm talking about cannot even be safely updated to a newer version, because it was ejected from CRA. New apps built with CRA work fine on Node 18 though. |
Failing for
|
The below fix worked for me. Update
|
this worked for me thanks |
I had the same issue and as many of you say, it's a problem with react-scripts and postcss because of React version. I fixed it in my React app by removing node_modules folder and yarn.lock file, then I updated my React version and also my react-dom dependency with:
Then I ran I hope this helps some of you. This worked for me because it's a small React App. You should probably verify if other dependencies are compatible with the latest React version (now 18.2.0) |
In Node v17:
In earlier versions of Node, this was just a deprecation warning:
The text was updated successfully, but these errors were encountered: