如何解决我的 React 应用程序编译期间的各种警告?
How can I resolve various warnings during compilation of my React app?
我在我的 React 项目中收到了这些警告:
(node_module
文件夹中的包是最新的。)
如何解决这些警告?
/src/index.css
(./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Warning
(309:5) start value has mixed support, consider using flex-start
instead printWarnings @ webpackHotDevClient.js:138
./src/index.css
(./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Warning
(457:5) Gradient has outdated direction syntax. New syntax is like to left
instead of right
.
./src/index.css
(./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Warning
(477:5) Gradient has outdated direction syntax. New syntax is like to left
instead of right
.
./src/index.css
(./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Warning
(497:5) Gradient has outdated direction syntax. New syntax is like to left
instead of right
.
我使用了 to bottom
值而不是 top
。
Gradient has outdated direction syntax. New syntax is like "to left" instead of "right".
我在我的 React 项目中收到了这些警告:
(node_module
文件夹中的包是最新的。)
如何解决这些警告?
/src/index.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Warning
(309:5) start value has mixed support, consider using flex-start instead printWarnings @ webpackHotDevClient.js:138
./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Warning
(457:5) Gradient has outdated direction syntax. New syntax is like
to left
instead ofright
.
./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Warning
(477:5) Gradient has outdated direction syntax. New syntax is like
to left
instead ofright
.
./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Warning
(497:5) Gradient has outdated direction syntax. New syntax is like
to left
instead ofright
.
我使用了 to bottom
值而不是 top
。
Gradient has outdated direction syntax. New syntax is like "to left" instead of "right".