Error: LuaItemPrototype doesn't contain key inventory_size.

My use case: I want to automatically craft a blueprint book filled with blueprints, but only if the player has enough advanced circuits to afford it. Currently I don't know how many advanced circuits I need until I craft a blueprint book!