const response = await fetch(csvFile);
The posted code is not fetching the csv file correctly (it is passed csvText which has not yet been defined).
csvText