I keep getting this error "cannot read properties of undefined (reading 'WebSocketProvider')"
this is my code
require('dotenv').config()
const ethers = require('ethers')
const { BigNumber, utils } = ethers
const provider = new ethers.providers.WebSocketProvider(
`wss://goerli.infura.io/ws/v3/${process.env.INFURA_ID}`,
'goerli',
)