postcss / postcss-custom-properties

Use Custom Properties in CSS
https://postcss.github.io/postcss-custom-properties
MIT License
597 stars 77 forks source link

variable '--van-gray-6' is undefined and used without a fallback #253

Closed FANZHETWO closed 2 years ago

FANZHETWO commented 2 years ago

When I start webpack compilation, Terminal prompts the error shown in the following image. An error means that CSS variables are not defined. How can I deal with this problem

Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(1:258) postcss-custom-properties: variable '--van-gray-5' is undefined and used without a fallback

 warning  in ./node_modules/vant/es/loading/index.css

Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(1:1170) postcss-custom-properties: variable '--van-padding-xs' is undefined and used without a fallback

 warning  in ./node_modules/vant/es/loading/index.css

Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(1:1204) postcss-custom-properties: variable '--van-gray-6' is undefined and used without a fallback

 warning  in ./node_modules/vant/es/loading/index.css

Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(1:1240) postcss-custom-properties: variable '--van-font-size-md' is undefined and used without a fallback

 warning  in ./node_modules/vant/es/loading/index.css

Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(1:1425) postcss-custom-properties: variable '--van-padding-xs' is undefined and used without a fallback

 warning  in ./node_modules/vant/es/popup/index.css

Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(1:465) postcss-custom-properties: variable '--van-white' is undefined and used without a fallback

 warning  in ./node_modules/vant/es/popup/index.css

Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(1:516) postcss-custom-properties: variable '--van-animation-duration-base' is undefined and used without a fallback

 warning  in ./node_modules/vant/es/popup/index.css

Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(1:1736) postcss-custom-properties: variable '--van-animation-timing-function-enter' is undefined and used without a fallback

 warning  in ./node_modules/vant/es/popup/index.css

Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(1:1948) postcss-custom-properties: variable '--van-animation-timing-function-leave' is undefined and used without a fallback

 warning  in ./node_modules/vant/es/popup/index.css

Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):
Warning

(1:2515) postcss-custom-properties: variable '--van-gray-5' is undefined and used without a fallback

 warning  in ./node_modules/vant/es/popup/index.css

Module Warning (from ./node_modules/postcss-loader/dist/cjs.js):