expected "indent", got "eos"
来源:1-1 导学(必看,课程新用户建议从“一期”开始学习)

啥您晓得
2020-02-18
找了半天不知道什么原因,是不是空格和tab的关系 ,找了好多资料也解决不了Failed to compile.
./src/components/v-header/v-header.vue?vue&type=style&index=0&lang=stylus&rel=stylesheet%2Fstylus& (./node_modules/css-loader/dist/cjs.js??ref–11-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref–11-oneOf-1-2!./node_modules/stylus-loader??ref–11-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/v-header/v-header.vue?vue&type=style&index=0&lang=stylus&rel=stylesheet%2Fstylus&)
Module build failed (from ./node_modules/stylus-loader/index.js):
ParseError: E:\vue-sell-cube\src\components\v-header\v-header.vue:68:1
64| @import "~common/stylus/mixin"
65| @import "~common/stylus/variable"
66|
67| .header position: relative overflow: hidden color: $color-white background: $color-background-ss .content-wrapper position: relative display: flex align-items: center padding: 24px 12px 18px 24px .avatar flex: 0 0 64px width: 64px margin-right: 16px img border-radius: 2px .content flex: 1 .title display: flex align-items: center margin-bottom: 8px .brand width: 30px height: 18px bg-image(‘brand’) background-size: 30px 18px background-repeat: no-repeat .name margin-left: 6px font-size: $fontsize-large font-weight: bold .description margin-bottom: 8px line-height: 12px font-size: $fontsize-small .support display: flex align-items: center .support-ico margin-right: 4px .text line-height: 12px font-size: $fontsize-small-s .support-count position: absolute right: 12px bottom: 14px display: flex align-items: center padding: 0 8px height: 24px line-height: 24px text-align: center border-radius: 14px background: $color-background-sss .count font-size: $fontsize-small-s .icon-keyboard_arrow_right margin-left: 2px line-height: 24px font-size: $fontsize-small-s .bulletin-wrapper position: relative display: flex align-items: center height: 28px line-height: 28px padding: 0 8px background: $color-background-sss .bulletin-title flex: 0 0 22px width: 22px height: 12px margin-right: 4px bg-image(‘bulletin’) background-size: 22px 12px background-repeat: no-repeat .bulletin-text flex: 1 white-space: nowrap overflow: hidden text-overflow: ellipsis font-size: $fontsize-small-s .icon-keyboard_arrow_right flex: 0 0 10px width: 10px font-size: $fontsize-small-s .background position: absolute top: 0 left: 0 width: 100% height: 100% z-index: -1 filter: blur(10px)
68|
-------^
69|
expected “indent”, got “eos”
at Parser.error (E:\vue-sell-cube\node_modules\stylus\lib\parser.js:259:11)
at Parser.expect (E:\vue-sell-cube\node_modules\stylus\lib\parser.js:287:12)
at Parser.block (E:\vue-sell-cube\node_modules\stylus\lib\parser.js:918:12)
at Parser.selector (E:\vue-sell-cube\node_modules\stylus\lib\parser.js:1640:24)
at Parser.stmt (E:\vue-sell-cube\node_modules\stylus\lib\parser.js:862:31)
at Parser.statement (E:\vue-sell-cube\node_modules\stylus\lib\parser.js:750:21)
at Parser.parse (E:\vue-sell-cube\node_modules\stylus\lib\parser.js:236:25)
at Renderer.render (E:\vue-sell-cube\node_modules\stylus\lib\renderer.js:80:22)
at E:\vue-sell-cube\node_modules\stylus-loader\index.js:167:12
at tryCatchReject (E:\vue-sell-cube\node_modules\when\lib\makePromise.js:840:30)
at runContinuation1 (E:\vue-sell-cube\node_modules\when\lib\makePromise.js:799:4)
at Fulfilled.when (E:\vue-sell-cube\node_modules\when\lib\makePromise.js:590:4)
at Pending.run (E:\vue-sell-cube\node_modules\when\lib\makePromise.js:481:13)
at Scheduler._drain (E:\vue-sell-cube\node_modules\when\lib\Scheduler.js:62:19)
at Scheduler.drain (E:\vue-sell-cube\node_modules\when\lib\Scheduler.js:27:9)
at processTicksAndRejections (internal/process/task_queues.js:76:11)
1回答
-
ustbhuangyi
2020-02-18
应该是 stylus 的缩进问题,你检查一下 stylus 缩进,确保用 2 空格缩进而不用 tab
00
相似问题