Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Cannot read properties of undefined #27

Closed
drodil opened this issue Feb 29, 2024 · 0 comments · Fixed by #28
Closed

Bug: Cannot read properties of undefined #27

drodil opened this issue Feb 29, 2024 · 0 comments · Fixed by #28
Labels
bug Something isn't working fixed This issue has been fixed

Comments

@drodil
Copy link
Contributor

drodil commented Feb 29, 2024

Running linguist-js fails for some repositories with the following error:

/home/.nvm/versions/node/v18.15.0/lib/node_modules/linguist-js/dist/index.js:180
        const finalResult = !opts.childLanguages && result && langData[result].group || result;
                                                                               ^

TypeError: Cannot read properties of undefined (reading 'group')
    at addResult (/home/.nvm/versions/node/v18.15.0/lib/node_modules/linguist-js/dist/index.js:180:80)
    at analyse (/home/.nvm/versions/node/v18.15.0/lib/node_modules/linguist-js/dist/index.js:240:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /home/.nvm/versions/node/v18.15.0/lib/node_modules/linguist-js/dist/cli.js:55:22

Node.js v18.15.0

drodil added a commit to drodil/LinguistJS that referenced this issue Feb 29, 2024
@Nixinova Nixinova added the bug Something isn't working label Mar 1, 2024
Nixinova pushed a commit that referenced this issue Mar 1, 2024
@Nixinova Nixinova added the fixed This issue has been fixed label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed This issue has been fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants