use free texture packer for phaser3

I’m using phaser3 and free texture packer, is it possible to do that? if yes please tell me how?
I tried to use addAtlasJSONHash but it was logging that this function is undefined, so I tried game.addAtlasJSONHash, but the same error was happening