GeekyAnts / react-native-seed

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

npm start out of the box error #18

Open eisenreich opened 5 years ago

eisenreich commented 5 years ago

I did everything like describen on https://reactnativeseed.com/. After the unzip, npm install and then npm start. But when I try to start the application I get the following error message: I used the Seed: Typescript, Redux and CRNA

> ReactNativeSeed@1.1.0 start C:\Users\path-to-workdir
> npm run build && concurrently -r 'npm run watch' 'react-native-scripts start'

> ReactNativeSeed@1.1.0 build C:\Users\path-to-workdir
> npm run clean && npm run tsc --

> ReactNativeSeed@1.1.0 clean C:\Users\path-to-workdir
> rimraf artifacts

> ReactNativeSeed@1.1.0 tsc C:\Users\path-to-workdir
> tsc

node_modules/@types/prop-types/index.d.ts(10,38): error TS1005: '=' expected.
node_modules/@types/prop-types/index.d.ts(12,46): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(12,75): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(12,99): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(14,54): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(14,78): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(14,81): error TS1109: Expression expected.
node_modules/@types/prop-types/index.d.ts(14,97): error TS1109: Expression expected.
node_modules/@types/prop-types/index.d.ts(14,122): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(14,130): error TS1128: Declaration or statement expected.
node_modules/@types/prop-types/index.d.ts(14,138): error TS1005: ',' expected.
node_modules/@types/prop-types/index.d.ts(27,48): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(27,49): error TS1109: Expression expected.
node_modules/@types/prop-types/index.d.ts(27,50): error TS1109: Expression expected.
node_modules/@types/prop-types/index.d.ts(27,68): error TS1005: '(' expected.
node_modules/@types/prop-types/index.d.ts(27,69): error TS1005: ')' expected.
node_modules/@types/prop-types/index.d.ts(29,30): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(29,54): error TS1005: ';' expected.
node_modules/@types/prop-types/index.d.ts(29,57): error TS1109: Expression expected.
node_modules/@types/react/index.d.ts(2295,27): error TS1005: ';' expected.
node_modules/@types/react/index.d.ts(2296,14): error TS1005: ':' expected.
node_modules/@types/react/index.d.ts(2296,28): error TS1005: ';' expected.
node_modules/@types/react/index.d.ts(2297,9): error TS1109: Expression expected.
node_modules/@types/react/index.d.ts(2298,9): error TS1005: '(' expected.
node_modules/@types/react/index.d.ts(2299,9): error TS1005: '(' expected.
node_modules/@types/react/index.d.ts(2300,5): error TS1005: '(' expected.
node_modules/@types/react/index.d.ts(2300,12): error TS1005: ')' expected.
node_modules/@types/react/index.d.ts(2312,49): error TS1005: ';' expected.
node_modules/@types/react/index.d.ts(2312,76): error TS1005: ';' expected.
node_modules/@types/react/index.d.ts(2312,99): error TS1005: ';' expected.
node_modules/@types/react/index.d.ts(2313,13): error TS1128: Declaration or statement expected.
node_modules/@types/react/index.d.ts(2314,13): error TS1005: '(' expected.
node_modules/@types/react/index.d.ts(2314,17): error TS1005: ',' expected.
node_modules/@types/react/index.d.ts(2314,44): error TS1005: ',' expected.
node_modules/@types/react/index.d.ts(2314,45): error TS1005: ':' expected.
node_modules/@types/react/index.d.ts(2316,17): error TS1005: '(' expected.
node_modules/@types/react/index.d.ts(2316,21): error TS1005: ',' expected.
node_modules/@types/react/index.d.ts(2316,51): error TS1005: ',' expected.
node_modules/@types/react/index.d.ts(2316,52): error TS1005: ':' expected.
node_modules/@types/react/index.d.ts(2318,21): error TS1005: '(' expected.
node_modules/@types/react/index.d.ts(2318,24): error TS1005: ')' expected.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! ReactNativeSeed@1.1.0 tsc: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the ReactNativeSeed@1.1.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!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2018-09-17T15_54_54_746Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! ReactNativeSeed@1.1.0 build: `npm run clean && npm run tsc --`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the ReactNativeSeed@1.1.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!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2018-09-17T15_54_54_770Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! ReactNativeSeed@1.1.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.1.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!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2018-09-17T15_54_54_792Z-debug.log
alexjorgef commented 5 years ago

What version of node you have ? Can you paste your package.json?

OoDeLally commented 5 years ago

I have the same problem. From other topics with similar errors, I thought it was because of my typescript version. I tried 3+, 2.3.4, 2.6.2. It doesnt change anything. I use node 8.12.0. My package.json is exactly the one provided by https://reactnativeseed.com/thank-you/30655

matedemorphy commented 5 years ago

Same problem

maudel commented 5 years ago

Any hint there ?

fniewijk commented 4 years ago

Upgrading typescript to 2.9.2 worked for me.