Skip to content

Commit

Permalink
fix: postcss-normalize module not found
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Apr 26, 2022
1 parent 3972a24 commit fd0afa3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
12 changes: 6 additions & 6 deletions libs/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ module.exports = function (webpackEnv) {
config: false,
plugins: !useTailwind
? [
'postcss-flexbugs-fixes',
require.resolve('postcss-flexbugs-fixes'),
[
'postcss-preset-env',
require.resolve('postcss-preset-env'),
{
autoprefixer: {
flexbox: 'no-2009',
Expand All @@ -193,13 +193,13 @@ module.exports = function (webpackEnv) {
// Adds PostCSS Normalize as the reset css with default options,
// so that it honors browserslist config in package.json
// which in turn let's users customize the target behavior as per their needs.
'postcss-normalize',
require.resolve('postcss-normalize'),
]
: [
'tailwindcss',
'postcss-flexbugs-fixes',
require.resolve('tailwindcss'),
require.resolve('postcss-flexbugs-fixes'),
[
'postcss-preset-env',
require.resolve('postcss-preset-env'),
{
autoprefixer: {
flexbox: 'no-2009',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@testing-library/user-event": "^14.1.0",
"@types/big.js": "^6.1.3",
"@types/node": "^17.0.27",
"@types/react": "^18.0.6",
"@types/react": "^18.0.7",
"@types/react-dom": "^18.0.2",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^5.21.0",
Expand Down
11 changes: 10 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3425,7 +3425,7 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^18.0.6":
"@types/react@*":
version "18.0.6"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.6.tgz#30206c3830af6ce8639b91ace5868bc2d3d1d96c"
integrity sha512-bPqwzJRzKtfI0mVYr5R+1o9BOE8UEXefwc1LwcBtfnaAn6OoqMhLa/91VA8aeWfDPJt1kHvYKI8RHcQybZLHHA==
Expand All @@ -3434,6 +3434,15 @@
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/react@^18.0.7":
version "18.0.7"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.7.tgz#8437a226763adf854969954dfe582529a406cbad"
integrity sha512-CXSXHzTexlX9esf4ReIUJeaemKcmBEvYzxHDUk19c3BCcEGUvUjkeC3jkscPSfSaQ6SPDRNd/zMxi8oc/P1zxA==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/resize-observer-browser@^0.1.6":
version "0.1.7"
resolved "https://registry.yarnpkg.com/@types/resize-observer-browser/-/resize-observer-browser-0.1.7.tgz#294aaadf24ac6580b8fbd1fe3ab7b59fe85f9ef3"
Expand Down

0 comments on commit fd0afa3

Please sign in to comment.