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

Unable to use files as input using -i #5

Closed
dhillonks opened this issue Sep 17, 2021 · 1 comment
Closed

Unable to use files as input using -i #5

dhillonks opened this issue Sep 17, 2021 · 1 comment

Comments

@dhillonks
Copy link
Contributor

As per the readme, node server.js -i '.\Silver Blaze.txt' should produce a Silver Blaze.html in ./dist.

However, the tool fails to generate HTML if a file is used as input using -i or --input. The following error appears in console:

image

@dhillonks dhillonks changed the title File cannot be used as input Unable to use files as input using -i Sep 17, 2021
@DerekJxy
Copy link
Owner

This is because I'm having the Silver Blaze.txt' and the server.js in the same folder. You should just use the command node server.js -i 'Silver Blaze.txt'

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