alm-tools / alm-tools.github.io

Website
https://alm-tools.github.io
MIT License
3 stars 3 forks source link

v2.28.0 not working on Windows 7 #4

Closed cplerch closed 7 years ago

cplerch commented 7 years ago

Installed alm.tools on Windows 7 x64 using npm v3.10.9 on node v6.9.1 When starting alm (or alm -i) I'm getting:

F:\dev\trial\alm\test-proj1>alm
Version: 2.28.0
DASHBOARD: (Please open in chrome) http://localhost:4444
F:\data\user.cpl\AppData\Roaming\npm\node_modules\alm\src\server\workers\lang\core\simpleValidator.js:34
                        if (!validValues.some(function (valid) { return valid.toLowerCase() === value_1.toLowerCase(); })) {
                                                                                                        ^
TypeError: value_1.toLowerCase is not a function
basarat commented 7 years ago

Can you share you tsconfig.json when that error occurs :rose:

cplerch commented 7 years ago

Sure, that's what has been auto-generated by alm -i:

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "moduleResolution": "node",
    "jsx": 0,
    "experimentalDecorators": false,
    "emitDecoratorMetadata": false,
    "declaration": false,
    "noImplicitAny": false,
    "suppressImplicitAnyIndexErrors": false,
    "strictNullChecks": false
  },
  "compileOnSave": true,
  "exclude": [
    "node_modules",
    "typings/browser",
    "typings/browser.d.ts"
  ]
}

It's an empty new project, didn't change or add anything. Then after trying to start alm got the error as indicated before and the server was not available at http://localhost:4444.

paganaye commented 7 years ago

Reporting exact same issue on Linux Mint

basarat commented 7 years ago

got it. Basically alm -i is broken as it generates

"jsx": 0,

The validator expects a string value but it comes out as a number. Working on fixing 🌹

basarat commented 7 years ago

Fixed with 2.29.0 :rose: Thanks for your patience :heart: