'Exceljs: Excel warning when opening file after some worksheets duplication

I am using Exceljs to generate excelfiles. From other issues I found that there is no API for duplicating worksheets so I have to do it by copying model from base worksheet to the target one. This works fine but when opening new document there is a warning. Is there a method to get rid of it?

Warning:

enter image description here

Reproduction repo: https://github.com/vladPopovschii/exceljs-issue

Similar discution: https://github.com/exceljs/exceljs/discussions/2030

ExcelJS: https://github.com/exceljs/exceljs



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source