json2ts started failing on my machine due to some hard to reproduce issue related running x86 binaries on an m1 mac. However since the output file was still there (it previously worked fine) pydantic-to-typescript still attempted to call 'remove_master_model_from_output' on it and failed with this message as a result:
line 111, in remove_master_model_from_output
new_lines = lines[:start] + lines[(end + 1) :]
TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘int’
json2ts started failing on my machine due to some hard to reproduce issue related running x86 binaries on an m1 mac. However since the output file was still there (it previously worked fine) pydantic-to-typescript still attempted to call 'remove_master_model_from_output' on it and failed with this message as a result:
line 111, in remove_master_model_from_output new_lines = lines[:start] + lines[(end + 1) :] TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘int’
(the error is the same as in https://github.com/phillipdupuis/pydantic-to-typescript/issues/5, not sure if it's caused by the same issue)
because obviously the master model was already stripped. This was confusing and it took me some time to figure out that json2ts was failling.