Closed zqjimlove closed 2 years ago
Hello,
Thanks for the report - it seems thrown by this line :
if (uniq(Object.values(files)).length !== entries.length) {
return new Error(
`At least a duplicated value in files JSON object was detected`
);
}
Obviously, some stuff happened that made that condition true whereas it shouldn't When I tried to reproduced it, I saw that yargs duplicated your "zh-CN" entry :
{
EN: 'D:\\TEMP\\TEMP\\tests-for-export-xlsx\\correct\\fr.json',
'zh-CN': 'D:\\TEMP\\TEMP\\tests-for-export-xlsx\\correct\\de.json',
zhCN: 'D:\\TEMP\\TEMP\\tests-for-export-xlsx\\correct\\de.json'
}
Apparently, by default, yargs has a setting in his inner parser called camel-case expansion set to true that caused that issue. @zqjimlove I created a fix : can you check if your issue is solved with v1.6.7 please ? (Reopen the issue if it isn't the case)
At least a duplicated value in files JSON object was detected