Haul: `haul start --port` not being used

Created on 19 Jul 2019  Â·  4Comments  Â·  Source: callstack/haul

Environment

$ react-native --version
react-native-cli: 2.0.1
react-native: 0.60.4
$ yarn haul --version
yarn run v1.17.3
$ haul start --version
0.9.0
✨  Done in 1.16s.

Description

Command: yarn haul start --port 3030 (https://github.com/callstack/haul/blob/64802a6174b4949c999397673af58ed1ad59ebe1/docs/CLI%20Commands.md#haul-start)

Expected behavior: haul should start on port 3030 and we should be able to open http://localhost:3030/.

Actual behavior: haul started on the default port 8081.

Screen Shot 2019-07-19 at 12 18 10 PM

Similarly, yarn haul start --no-interactive true also doesn't work. It still displays the UI.

Reproducible Demo

next branch

react-native init MyProject
cd MyProject
yarn add --dev @haul-bundler/cli
yarn haul init
yarn haul start --port 3030

I have also tried yarn haul start --port=3030 and that doesn't work too.

bug

Most helpful comment

@hesyifei you might want to check #611

All 4 comments

The bug is fixed and will be released soon.

@zamotany, thanks! yarn haul start --no-interactive true seems to be ignored too. Should we still see the full screen with logs if we set that to true?

For now use --no-interactive=true. For some reason yargs is not properly handling this option. I'll look into it.

@hesyifei you might want to check #611

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xareelee picture xareelee  Â·  5Comments

MichelDiz picture MichelDiz  Â·  3Comments

rtomchinsky picture rtomchinsky  Â·  7Comments

EamonnLaffey picture EamonnLaffey  Â·  5Comments

Traviskn picture Traviskn  Â·  4Comments