The mistake the west made with China is they expected China to behave like their former colonies in Africa, and simply be a source for cheap labour and be exploited, it was never meant to compete, just live on handouts.
Thankfully China had other ideas.