Pulled a snippet out of my passion project because I cannot figure out why this file can't be found when running locally (Gatsby). Why is that not a valid path? My tsv file is in the same directory as the calling file. The tsv has 3 columns: time, stock, index
In the real project, useMarketData.js contains this snippet and the tsv and this file are both in src/


You need to put the
tsvfile inside thestaticfolder. Read the gatsby documentation for more details.