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

TypeError: Cannot read properties of undefined (reading 'attr') #5

Closed
atix9000 opened this issue Feb 7, 2022 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@atix9000
Copy link

atix9000 commented Feb 7, 2022

xliff-simple-merge --input-file messages.xlf --destination-file messages.de.xlf -output-file output.xlf
...npm\node_modules\xliff-simple-merge\dist\src\merge.js:54
destUnit.childNamed('target').attr.state = 'new';
^

TypeError: Cannot read properties of undefined (reading 'attr')

@atix9000 atix9000 changed the title destUnit.childNamed('target').attr.state = 'new'; TypeError: Cannot read properties of undefined (reading 'attr') Feb 7, 2022
@daniel-sc
Copy link
Owner

Hi @atix9000
Would it be possible to share input and target files? (At least anonymized)

@atix9000
Copy link
Author

atix9000 commented Feb 7, 2022

@daniel-sc in destination-file there was no tag, so i added empty tag and it is working. It would be good to add auto create tag option.

Thanks for the library helped me a lot :)

@filol
Copy link

filol commented Apr 6, 2022

Hello @daniel-sc i got the same bug on my side :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants