Infragistics / livewire

A simple web content editor built with Electron
https://waffle.io/infragistics/livewire
20 stars 9 forks source link

Error thrown when opening a file #108

Closed ig-ealbert closed 7 years ago

ig-ealbert commented 7 years ago
  1. Start Livewire.
  2. Open a file (ex. readme.adoc in training-repo).
  3. Check the console.

    Uncaught TypeError: Cannot read property 'children' of undefined C:\Git\livewire\node_modules\cheerio\lib\api\traversing.js:10

@MikeTechSpeak was getting a different error about file|open, but it happened at the same operation (opening a file).

The result is that the preview does not work. Mine is blank, his wouldn't update at all.

I have node version 4.5.0, he has the latest version.

ig-ealbert commented 7 years ago

Fixed for me by deleting the node_modules folder and redoing npm install. Mike still gets an error: C:\Users\[USER_NAME]\Documents\GitHub\livewire\app\modules\persistence\index.js:141 TypeError: Cannot read property 'file|opened' of undefined(…)

craigshoemaker commented 7 years ago

There is a nested node_modules folder in the app folder that once deleted allowed @MikeTechSpeak to proceed without an issue.