question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I 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:open
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
nesscxcommented, Apr 4, 2019

Angular 6+ do not support “fs” module, that’s why we’re getting that error.

0reactions
Siemienikcommented, Jan 12, 2019

@krisstoof @rsatyan I am using same workflow like @krisstoof and I’ve never had this error…

Did you try use absolute path ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found