Ich habe Setup a little repo with my own CSS code style. In diesem Repo habe ich eine minimale stylinint config nur um zu überprüfen, ich habe keinen Fehler über unbekannte Regeln, keine unterstützten Regeln, etc.Fehler in Stylelint in Travis, aber nicht lokal
Wenn ich meine $ npm check
lokal ausführen, läuft es ganz gut.
Aber Travis-ci werfen mich the following errors:
> [email protected] test /home/travis/build/alienlebarge/stylelintrc
> gulp lint:css
/home/travis/build/alienlebarge/stylelintrc/node_modules/stylelint/dist/rules/indentation/index.js:232
var hierarchyMap = new Map();
^
ReferenceError: Map is not defined
at Object.<anonymous> (/home/travis/build/alienlebarge/stylelintrc/node_modules/stylelint/dist/rules/indentation/index.js:232:24)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/travis/build/alienlebarge/stylelintrc/node_modules/stylelint/dist/rules/index.js:227:20)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
[37m[40mnpm[0m [0m[31m[40mERR![0m[35m[0m Test failed. See above for more details.
[0m
travis_time:end:0581a9e8:start=1460117969543196000,finish=1460117970835293872,duration=1292097872
[0K
[31;1mThe command "npm test" exited with 1.[0m
Done. Your build exited with 1.
Es Nähte über die Vertiefung
"indentation": [
4, {
ignore: ["value", "param"]
}
],
Aber ich kann nicht verstehen, was das Problem zu sein.
Vielleicht kann mir jemand helfen.
Versionsunterschied? –