Module not found: Error: Can't resolve 'fs' in 'C:.... using Whisper


I am trying to transcript file audio using Whisper but it throws an error (Module not found: Error: Can’t resolve ‘fs’ in 'C:) when I use the snipped code from the documentation.

const fs = require('fs');
const resp = await openai.createTranscription(
wondering if anyone can help?
Thank you