log4brains icon indicating copy to clipboard operation
log4brains copied to clipboard

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

Open Crown0815 opened this issue 2 years ago • 4 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

Crown0815 avatar Jul 12 '22 14:07 Crown0815

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 avatar Jul 14 '22 10:07 thomvaill

@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.

Crown0815 avatar Jul 15 '22 06:07 Crown0815

@thomvaill Thanks, also works for me!

mangoldd avatar Jul 15 '22 08:07 mangoldd

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?

thomvaill avatar Jul 15 '22 18:07 thomvaill