tolgee / tolgee-cli

The Tolgee CLI
MIT License
16 stars 11 forks source link

Projects without keys (or only namespaced keys) throws error #30

Closed JanCizmar closed 1 year ago

JanCizmar commented 1 year ago
tolgee compare ./src/**
🐭✅     Analyzing code...
🔴 An unexpected error occurred while running the command.
🔴 Please report this to our issue tracker: https://github.com/tolgee/tolgee-cli/issues
TypeError: Cannot read properties of undefined (reading 'size')
    at compareKeys (/usr/local/lib/node_modules/@tolgee/cli/dist/commands/sync/syncUtils.js:52:30)
    at Command.compareHandler (/usr/local/lib/node_modules/@tolgee/cli/dist/commands/sync/compare.js:19:46)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Command.parseAsync (/usr/local/lib/node_modules/@tolgee/cli/node_modules/commander/lib/command.js:935:5)
    at async run (/usr/local/lib/node_modules/@tolgee/cli/dist/index.js:136:9)
github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: