[SOLVED] MoralisError [Moralis SDK Error]: [C0009] Modules are started already. This method should be called only once

Working through the ZapperFi tutorial on youtube. When calling http://localhost:8080/nativeBalance?address=MY_ADDRESS&chain=0x89 I get the C0009 error. I saw this error referenced in another post, but seems to not apply to this specifically.

I have all of the code copied from the article as well in a separate project folder and ran into the same error.

Has anyone else run into this?

Moved the Moralis.start call outside off the app.get. Runs as intendedโ€ฆ here is code.

const express = require('express')
const app = express()
const port = 8080
const Moralis = require('moralis').default
const cors = require('cors')

require('dotenv').config()

app.use(cors())

const MORALIS_API_KEY = process.env.MORALIS_API_KEY

app.get('/', (req, res) => {
    res.send('gm mfers')
})

app.get('/nativeBalance', async (req, res) => {

    try {
        const { address, chain } = req.query

        const response = await Moralis.EvmApi.balance.getNativeBalance({
            address: address,
            chain: chain,
        })

        const nativeBalance = response
        res.send(nativeBalance)
    } catch(e) {
        res.send(e)
    }
})

Moralis.start({
    apiKey: MORALIS_API_KEY
}).then(() => {
    app.listen(port, () => {
        console.log(`Example app listening on port ${port}`)
    })
})```