Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report HTML template missing from kbn-alert-load@2.1.0 #6

Open
simianhacker opened this issue Dec 1, 2021 · 1 comment
Open

Report HTML template missing from kbn-alert-load@2.1.0 #6

simianhacker opened this issue Dec 1, 2021 · 1 comment

Comments

@simianhacker
Copy link

Looks like the report template didn't make it into the NPM package for 2.1.0.

I ran kbn-alert-load run number-of-alerts and it failed with:

Error: ENOENT: no such file or directory, open '/Users/ccowan/.nvm/versions/node/v16.13.0/lib/node_modules/kbn-alert-load/lib/report-template.html'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at readTemplate (/Users/ccowan/.nvm/versions/node/v16.13.0/lib/node_modules/kbn-alert-load/lib/report.js:43:13)
    at generateReport (/Users/ccowan/.nvm/versions/node/v16.13.0/lib/node_modules/kbn-alert-load/lib/report.js:22:19)
    at run (/Users/ccowan/.nvm/versions/node/v16.13.0/lib/node_modules/kbn-alert-load/lib/commands.js:163:3)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
@pmuellr
Copy link
Owner

pmuellr commented Dec 1, 2021

Dang it, I think it's because we added a top-level .gitignore for them. Which is probably good, so we should probably rename the file from *.html to *.html-template or something, or else create some more complicated .gitignore-isms.

node_modules
tmp
.vscode
*.html
.DS_Store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants