diff --git a/libs/react-scripts/config/webpack.config.js b/libs/react-scripts/config/webpack.config.js index 4fd1f167a..cac56c0bf 100644 --- a/libs/react-scripts/config/webpack.config.js +++ b/libs/react-scripts/config/webpack.config.js @@ -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', @@ -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', diff --git a/package.json b/package.json index c521e36b2..ef353dd23 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index f063f22d5..50111b0e6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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== @@ -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"