在严格模式下会报各种语法格式错误,eg: Expect to indent 2 spaces but find 0 // 预计缩进2个空格但找到 0 String must use single quotes // 字符串必须使用单引号 Need to wrap at the end of the file but not found // 文件末尾需要换行但未找到 Extra semicolon // 额外的分号 解决方法: 1.在/static/.gitigonore配置文件里添加上一句: src/* //即scr目录下所有文件 2.在终端重启该项目