Can't read file
See original GitHub issueI have an error
TypeError: e.exists is not a function
at exceljs.min.js:4
at E (exceljs.min.js:10)
at c.M [as constructor] (exceljs.min.js:10)
at new c (exceljs.min.js:15)
at Object.exists (exceljs.min.js:4)
at b.exports.readFile (exceljs.min.js:7)
at ProjectsListComponent.push../src/app/projects-list/projects-list.component.ts.ProjectsListComponent.flags2 (projects-list.component.ts:88)
at Object.eval [as handleEvent] (ProjectsListComponent.html:141)
at handleEvent (core.js:10258)
at callWithDebugContext (core.js:11351)
when I’m using angular this is my code
readExcel() {
const workbook = new Excel.Workbook();
workbook.xlsx.readFile('../assets/Raport.xlsx')
.then(function() {
const workSheet = workbook.getWorksheet('Project Data');
}).catch(function(error) {
console.log(error);
});
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Workable Fixes to Can't Read from Source File or Disk Error
Part 1: How to Fix Can't Read from the Source File or Disk Error? · Solution 1: Restart Your PC · Solution 2:...
Read more >Fix the Issue: Can't Read from the Source File or Disk
Can't read from the source file or disk · Method 1. Restart the PC · Method 2. Check the file name · Method...
Read more >"Can't Read From Source File Or Disk" Error On Windows
Many Windows users have reported getting the error message " Can't read from source file or disk" when they try to move large...
Read more >Fixed Can't Read from the Source File or Disk
As the error implies, can't read from the source file or disk, it means you cannot access the source files or source disk....
Read more >Error: Can't read file, or Presentation cannot be opened
Error: Can't read file, or Presentation cannot be opened · Open Windows File Explorer (Open Start in Windows and type File Explorer.) ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Angular 6+ do not support “fs” module, that’s why we’re getting that error.
@krisstoof @rsatyan I am using same workflow like @krisstoof and I’ve never had this error…
Did you try use absolute path ?