callstack / haul

Haul is a command line tool for developing React Native apps, powered by Webpack
MIT License
3.64k stars 194 forks source link

Initialisation is hanging on package.json edit #753

Closed jackbilestech closed 4 years ago

jackbilestech commented 4 years ago

Environment

Description

The issue is <npx/yarn> haul init hangs in the below state. Not quite sure how to debug further.

Reproducible Demo

npx react-native init app --template react-native-template-typescript
cd app
npm i haul -D
npx haul init

Terminal Output:

√ Project looks good
i Haul files are already ignored
i Haul is already part of your build scripts
i Haul is already part of your build.gradle
? Enter the name of the script to add to package.json, e.g. `haul` for `yarn run haul` haul
- Adding `haul` script to your package.json
zamotany commented 4 years ago

Replace haul package with @haul-bundler/cli and then try again. If it doesn't work use this node ./node_modules/@haul-bundler/cli/bin/haul.js init (you might need to replace / with \\).

haul package is a legacy one and should not be used.

jackbilestech commented 4 years ago

I see, no problem.

Thanks for your recommendation