red-gold / react-social-network

Simple React Social Network
https://medium.com/@qolzam/create-social-network-by-react-js-fe60010a32e6
MIT License
490 stars 484 forks source link

yarn start error #126

Closed bsde1234 closed 4 years ago

bsde1234 commented 4 years ago

I get error like,

react-social-network/node_modules/react-day-picker/types/DayPicker.d.ts
(15,30): 'LocaleUtils' only refers to a type, but is being used as a value here.

previously in functions command prompt

firebase functions:config:set gmail.email="myname@gmail.com" gmail.password="12344445"

and pressed enter(not used plivo thing), and when I issued npm start I got,

WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/

ERROR in ./src/services/authorize/authorizeService.ts
Module not found: Error: Can't resolve '../../domain/authorize/verification' in '/home/justine/web/firestore-social-backend/functions/src/services/authorize'
 @ ./src/services/authorize/authorizeService.ts 18:23-69
 @ ./src/index.ts

ERROR in ./src/services/authorize/publicAuthService.ts
Module not found: Error: Can't resolve '../../domain/authorize/verification' in '/home/justine/web/firestore-social-backend/functions/src/services/authorize'
 @ ./src/services/authorize/publicAuthService.ts 17:23-69
 @ ./src/index.ts
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! functions@ build: `webpack`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the functions@ 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!     /home/justine/.npm/_logs/2019-12-09T15_17_01_717Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! functions@ start: `npm run build && firebase deploy`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the functions@ 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!     /home/justine/.npm/_logs/2019-12-09T15_17_01_788Z-debug.log
justine@justine-H110M-H:~/web/firestore-social-backend/functions$ firebase deploy
⚠  functions: package.json indicates an outdated version of firebase-functions.
 Please upgrade using npm install --save firebase-functions@latest in your functions directory.
bsde1234 commented 4 years ago

I resolved this error by downgrading to react-day-picker@7.3.2. But now I get an error like,

react-social-network/src/containers/emailVerification/EmailVerificationComponent.tsx
(152,27): Expected 2 type arguments, but got 1.
Qolzam commented 4 years ago

Thanks for reporting @bsde1234. Which branch you are using?

bsde1234 commented 4 years ago

I cloned https://github.com/red-gold/react-social-network.git

bsde1234 commented 4 years ago

Now I use v-0.6.0

I got following errors, src/components/circle/circlecomonent.tsx import IconButtonElement from 'layouts/IconButtonElement' should beimport IconButtonElement from 'layouts/iconButtonElement' src/components/post/postcomonent.tsx import IconButtonElement from 'layouts/IconButtonElement' should be import IconButtonElement from 'layouts/iconButtonElement'

bsde1234 commented 4 years ago

Now it works locally. When I deployed it to firebase using npm run deploy:firebase, I get Uncaught SyntaxError: Unexpected token '<' in browser console. I also get this error in console,

Could not find implementations for the following rules specified in the configuration:
    ter-indent
    no-extra-boolean-cast
Try upgrading TSLint and/or ensuring that you have all necessary custom rules installed.
If TSLint was recently upgraded, you may have old rules configured which need to be cleaned up.

https://monsoon-network.firebaseapp.com/

bsde1234 commented 4 years ago

@Qolzam Can you please take a look on this website? https://monsoon-network.firebaseapp.com/

Qolzam commented 4 years ago

Sorry @bsde1234, I got busy this week. I need to make time (maybe in the weekend) to check your problem.

bsde1234 commented 4 years ago

Ok

Qolzam commented 4 years ago

Close with #131.