Why "keystore expects a standard Web browser or Node environment."?

import { Wallet } from 'fuels'
import fs from 'fs'

const writerStream = fs.createWriteStream(process.cwd() + '/wallets/fuel1.json')

const accounts = []
const amount = 1000

for (let index = 0; index < amount; index++) {
    const account = Wallet.generate()
    accounts.push(account)
}

writerStream.write(JSON.stringify(accounts), 'UTF8')
writerStream.end()

console.log(`${amount} wallets has been created.`)

Node: v16.20.0
fuels: 0.40.0

We have an issue for this:

1 Like

So there is no solution yet sir?