Creating MnemonicKey causes TypeError on terra.js

I am currently trying to build a React app with terra.js. When I run the code below, the console spits out an Uncaught TypeError: Cannot read properties of undefined (reading ‘call’).

const mk = new MnemonicKey({
            'notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius',

The full error:

Uncaught TypeError: Cannot read properties of undefined (reading 'call')
    at Hash.CipherBase (index.js:7:1)
    at new Hash (browser.js:9:1)
    at createHash (browser.js:29:1)
    at deriveChecksumBits (index.js:44:1)
    at entropyToMnemonic (index.js:127:1)
    at Object.generateMnemonic (index.js:145:1)
    at new MnemonicKey (MnemonicKey.ts:77:1)
    at CryptoInit (CryptoInit.js:10:1)
    at App (App.js:5:1)
    at renderWithHooks (react-dom.development.js:14985:1)
CipherBase	@	index.js:7
Hash	@	browser.js:9
createHash	@	browser.js:29
deriveChecksumBits	@	index.js:44
entropyToMnemonic	@	index.js:127
generateMnemonic	@	index.js:145
MnemonicKey	@	MnemonicKey.ts:77
CryptoInit	@	CryptoInit.js:10
App	@	App.js:5
renderWithHooks	@	react-dom.development.js:14985
mountIndeterminateComponent	@	react-dom.development.js:17811
beginWork	@	react-dom.development.js:19049
callCallback	@	react-dom.development.js:3945
invokeGuardedCallbackDev	@	react-dom.development.js:3994
invokeGuardedCallback	@	react-dom.development.js:4056
beginWork$1	@	react-dom.development.js:23964
performUnitOfWork	@	react-dom.development.js:22776
workLoopSync	@	react-dom.development.js:22707
renderRootSync	@	react-dom.development.js:22670
performSyncWorkOnRoot	@	react-dom.development.js:22293
scheduleUpdateOnFiber	@	react-dom.development.js:21881
updateContainer	@	react-dom.development.js:25482
(anonymous)	@	react-dom.development.js:26021
unbatchedUpdates	@	react-dom.development.js:22431
legacyRenderSubtreeIntoContainer	@	react-dom.development.js:26020
render	@	react-dom.development.js:26103
./src/index.js	@	index.js:7
options.factory	@	react refresh:6
__webpack_require__	@	bootstrap:24
(anonymous)	@	startup:7
(anonymous)	@	startup:7

I was wondering what is wrong with the code.