I'm encountering an error when trying to import an excel file using the following code
Cannot read properties of undefined (reading '0')
I'm attempting to import a file named Book.csv, and wondering if this type of file can be successfully imported.
1,chocolate,brown,10
2,gum,red,11
3,juice,yellow,5
Upon inspecting the app.component.ts file, it appears that the import is configured for 4 columns.
app.component.ts
var columns = {
'A': '',
'B': 'Make',
'C': 'Model',
'D': 'Price'
};