Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Chip): fix stylus SyntaxError "Unknown word - padding" #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RayJune
Copy link

@RayJune RayJune commented Jun 11, 2020

san-devtool 在使用 san-mui 的 Chip 组件时,会因为 "padding" 这行代码产生 SyntaxError 的报错信息(构建工具版本 Webpack@4.43.0, stylus-loader@3.0.2 , css-loader@3.5.3, san-mui@1.1.5)。报错信息如下:

ERROR in ./node_modules/san-mui/lib/Chip/Chip.styl (./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src!./node_modules/stylus-loader!./node_modules/san-mui/lib/Chip/Chip.styl)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
SyntaxError

(41:3) Unknown word

39 | padding: 0 12px;
40 | padding
> 41 | cursor: default;

结合代码上下文,删除掉第 40 行的 padding 即解决了这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant