opened
glenjamin
username_0
/Users/glen/Development/GitHub/repo-supervisor/node_modules/lodash/lodash.js:13199
      result[value] = key;
                    ^

TypeError: Cannot convert object to primitive value
    at /Users/glen/Development/GitHub/repo-supervisor/node_modules/lodash/lodash.js:13199:21
    at /Users/glen/Development/GitHub/repo-supervisor/node_modules/lodash/lodash.js:3209:9
    at /Users/glen/Development/GitHub/repo-supervisor/node_modules/lodash/lodash.js:4944:15
    at baseForOwn (/Users/glen/Development/GitHub/repo-supervisor/node_modules/lodash/lodash.js:3001:24)
    at baseInverter (/Users/glen/Development/GitHub/repo-supervisor/node_modules/lodash/lodash.js:3208:7)
    at /Users/glen/Development/GitHub/repo-supervisor/node_modules/lodash/lodash.js:5247:16
    at e.exports (/Users/glen/Development/GitHub/repo-supervisor/dist/cli.js:1:3646)
    at /Users/glen/Development/GitHub/repo-supervisor/dist/cli.js:1:2281
    at Array.forEach (native)
    at Object.processFile (/Users/glen/Development/GitHub/repo-supervisor/dist/cli.js:1:2148)
```
Crashes with "Cannot convert object to primitive value"
issue
created
radekk
username_1
I tried to reproduce this issue successfully. It does trigger an error when you scan the current directory of repo-supervisor project.

It's caused by `node_modules/globals/globals.json` file which is a standard JSON file but it breaks `invert()` function from `lodash` module. I already filled an issue for mentioned library, depending on that I will decide what to do further.

Reported issue: https://github.com/lodash/lodash/issues/3260
comment
closed
radekk
username_1
issue