Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

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

Description

@FANZHETWO

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):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions