Error: Invalid CSS after

Posted 翱翔天地

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error: Invalid CSS after相关的知识,希望对你有一定的参考价值。

1、错误描述

[编译scss/sass] 16:04:01.955 
[编译scss/sass] 16:04:01.955   "status": 1,
[编译scss/sass] 16:04:01.955   "file": "G:/HBuilderXWork/ES6/sass/a.sass",
[编译scss/sass] 16:04:01.955   "line": 1,
[编译scss/sass] 16:04:01.955   "column": 12,
[编译scss/sass] 16:04:01.955   "message": "Invalid CSS after \\"#student p\\": expected \\"\\", was \\"\\"",
[编译scss/sass] 16:04:01.955   "formatted": "Error: Invalid CSS after \\"#student p\\": expected \\"\\", was \\"\\"\\n        on line 1 of a.sass\\n>> #student p \\n\\n   -----------^\\n"
[编译scss/sass] 16:04:01.955 

2、错误原因

#student p
	color: #FF0000;
	width: 300px;
	
	.name
		color: red;
		font-size: 14px;
	

3、解决办法

以上是关于Error: Invalid CSS after的主要内容,如果未能解决你的问题,请参考以下文章

我收到此错误:XML Parsing Error: junk after document element [关闭]

ruby环境sass编译中文出现Syntax error: Invalid GBK character错误解决方法

go语言中的invalid character 'x00' after top-level value

记录一个问题go get -u github.com/go-redis/redis出现错误" invalid character '.' after top-level (代

Git报错:error: invalid path

无法通过 CreateFile 打开设备,ERROR_INVALID_FUNCTION