I have this segment of code that is meant to upload a csv file for analysis on javascript using d3.
import * as d3 from 'd3'
// Materials
d3.csv("disney_plus_shows.csv", function(data) {
console.log(data);
});
However, I am noticing that when I run npm build dev, the file cannot be found.
I am recieving this error
I have also tried placing copies of this csv file outside the src directory and root directory. I am not sure why I am unable to load it.