You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.
[x ] I confirm that this is a issue rather than a question.
Bug report
When attempting to run yarn run new-incident I receive an error Cannot read property 'systems' of undefined.
I believe I have tracked this down to the node_modules\@statusfy\core\lib\new-incident.js file which loads the config.
At line 22 the config is loaded with const config = loadConfig(sourceDir). When config is used at line 52 we are trying to access the content.systems property which actually exists at config.config.content.systems rather than config.content.systems. The config file used is copied below.
When I update the new-incident.js file to use config.config... this error no longer persists, but I now receive an error at line 9 of new-incident.js that suggests that frontMatter is undefined
Version
Steps to reproduce
Create a new empty directory
Run statusfy init
Fill in values for title/description etc
Run yarn (to install dependencies)
Run yarn run new-incident
Fill in incident details
Receive error TypeError: Cannot read property 'systems' of undefined
What is expected?
Expected: A new indicident markdown file will be generated
What is actually happening?
No markdown file is generated
Other relevant information
In order to get statusfy to work on my system I first have to run statusfy init then receive the error (node:32356) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat 'C:/Users/{username}/AppData/Roaming/npm/node_modules/statusfy/node_modules/@statusfy/core/lib/init/.gitignore'. To resolve this I then have to run yarn (to install dependencies). I am then successfully able to run yarn dev and browse to the example site.
Your OS: Windows 10 (10.0.17758.0)
Node.js version: v10.13.0
Browser version: Chrome 64 bit (70.0.3538.102)
Is this a global or local install? Both - tried global and local
Which package manager did you use for the install? Yarn
The text was updated successfully, but these errors were encountered:
Bug report
When attempting to run
yarn run new-incident
I receive an errorCannot read property 'systems' of undefined
.I believe I have tracked this down to the
node_modules\@statusfy\core\lib\new-incident.js
file which loads the config.At line
22
the config is loaded withconst config = loadConfig(sourceDir)
. Whenconfig
is used at line52
we are trying to access thecontent.systems
property which actually exists atconfig.config.content.systems
rather thanconfig.content.systems
. The config file used is copied below.When I update the
new-incident.js
file to useconfig.config...
this error no longer persists, but I now receive an error at line9
ofnew-incident.js
that suggests thatfrontMatter
isundefined
Version
Steps to reproduce
statusfy init
yarn
(to install dependencies)yarn run new-incident
TypeError: Cannot read property 'systems' of undefined
What is expected?
Expected: A new indicident markdown file will be generated
What is actually happening?
No markdown file is generated
Other relevant information
In order to get
statusfy
to work on my system I first have to runstatusfy init
then receive the error(node:32356) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat 'C:/Users/{username}/AppData/Roaming/npm/node_modules/statusfy/node_modules/@statusfy/core/lib/init/.gitignore'
. To resolve this I then have to runyarn
(to install dependencies). I am then successfully able to runyarn dev
and browse to the example site.The text was updated successfully, but these errors were encountered: