Skip to content

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