GeekyAnts / react-native-seed

Get your favorite boilerplate of React Native
http://ReactNativeSeed.com
652 stars 15 forks source link

Error with fresh build of typescript/redux/CRNA #7

Closed whaus7 closed 6 years ago

whaus7 commented 6 years ago

Tried switched to ntypescript since tsc is deprecated but got the exactly same error even after switching? Been banging my head for 6 hours. Desperately need help..

ReactNativeSeed@1.0.0 tsc /Users/whausman/PhpstormProjects/Warehouse_App_JSX tsc

src/boot/setup.tsx(18,3): error TS2554: Expected 1-2 arguments, but got 0. npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! ReactNativeSeed@1.0.0 tsc: tsc npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the ReactNativeSeed@1.0.0 tsc script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/whausman/.npm/_logs/2017-11-17T23_02_25_941Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! ReactNativeSeed@1.0.0 build: npm run clean && npm run tsc -- npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the ReactNativeSeed@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/whausman/.npm/_logs/2017-11-17T23_02_25_957Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! ReactNativeSeed@1.0.0 start: npm run build && concurrently -r 'npm run watch' 'react-native-scripts start' npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the ReactNativeSeed@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/whausman/.npm/_logs/2017-11-17T23_02_25_974Z-debug.log

shivrajkumar commented 6 years ago

@whaus7 The issue seems to be in line 18 of src/boot/setup.tsx as mentioned above It should be

constructor(props) {
    super(props);
    this.state = {
      isLoading: false,
      store: configureStore(() => this.setState({ isLoading: false })),
      isReady: false
    };
  }

Edit: Also the project has been updated with the latest dependencies.

whaus7 commented 6 years ago

dude thanks! that did the trick. so should I be grabbing the repo from here or reactnativeseeds.com little setup wizard thing? to get the latest dependencies that is

shivrajkumar commented 6 years ago

@whaus7 Grab it from reactnativeseed.com