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

Watch mode does not work #134

Closed
meganehouser opened this issue Aug 19, 2019 · 2 comments
Closed

Watch mode does not work #134

meganehouser opened this issue Aug 19, 2019 · 2 comments

Comments

@meganehouser
Copy link

When marp-cli was executed in watch mode, an error was output and stopped.
I use macOS Mojave (10.14.6)

% npx @marp-team/marp-cli -w slides.md 
[  INFO ] Converting 1 markdown...
[ ERROR ] Failed converting Markdown. (Provided options.stopPort(40000is less than options.startPort (52000))
@yhatt
Copy link
Member

yhatt commented Aug 19, 2019

It comes from unintended breaking by patch update of portfinder (http-party/node-portfinder#85). Marp CLI uses port 52000 resolved by portfinder to send reload signal to watched HTML.

We can wait for a patch working at http-party/node-portfinder#86 in progress, or change default port number to under 40000.

@yhatt
Copy link
Member

yhatt commented Aug 20, 2019

The latest portfinder was temporally rolled back to worked version. npx @marp-team/marp-cli -w should work now.
http-party/node-portfinder#86 (comment)

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