after a make build files doesn't load properly then found it was due to a wrong path possibly due to KINC_DEBUGDIR.
As a temporary fix I tried p.addDefine('KINC_DEBUGDIR="web"'); and it works so probably is a kmake issue not passing it in the makefile correctly.
I haven’t tested it in Ninja due to other ‘file not found’ issues that I haven’t checked yet.