Expected property "0" of type ECPair, got p

When I try to create a wallet in the application react with the following code:
const = bip39.mnemonicToSeed seed (mnemonic);
const master = bitcoin.HDNode.fromSeedBuffer (seed, "testnet");

I received the error: the expected property "0" of type ECPair, got p