thomvaill / log4brains

✍️ Log and publish your architecture decisions (ADR)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview fails with `Cannot read property 'incrementalOptions' of undefined`

Crown0815 opened this issue · comments

Bug Report

Description

Executing log4brains preview fails with Fatal Cannot read property 'incrementalOptions' of undefined message

Steps to Reproduce

The full log can be seen below, but it is quite easy:

  1. Install log4brains as by instructions from ReadMe
  2. Execute log4brains init
  3. Execute log4brains preview

image

Expected Behavior

Seeing the preview

Context

I cannot see a preview of the ADRs

Environment

  • Log4brains version: 1.0.0-beta.13
    image

  • Node.js version: 12.18.0
    image

  • OS and its version: Windows 10.0.19044 N/A Build 19044

Hi!
Is it a fresh install or are you upgrading from an older version of log4brains?
If this is the case, can you try:

npm uninstall -g log4brains
rm -rf "$(npm root -g)/log4brains"
npm install -g log4brains

@thomvaill I was indeed updating from version 1.0.0-beta.12. The clean installation resolved the issue! Thanks so much!

The tool is really impressive. Amazing work.

@thomvaill Thanks, also works for me!

Cool! At least we have a workaround.
But I still don't know why we have this issue when upgrading... Does someone have an idea?