๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
WEB/Front-End๐ŸŒ

React project ์ค‘ ๋•์ง€๋•์ง€ ์˜ค๋ฅ˜ ๋ชจ์Œ(+React๋ž‘ ์ƒ๊ด€์—†๋Š” ๊ฒƒ๋„)

by narang111 2022. 1. 6.

๐Ÿ™Š

'event'์€(๋Š”) ์‚ฌ์šฉ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

- event.preventDefault() ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๊ณ  ํ–ˆ๋Š”๋ฐ ์•ˆ๋‚˜๋˜ ์˜ค๋ฅ˜๊ฐ€ ๋‚ฌ๋‹ค.

์•Œ๊ณ ๋ณด๋‹ˆ๊นŒ ์ปดํฌ๋„ŒํŠธ ํ•จ์ˆ˜ ์•ˆ์— return์„ ์•ˆํ•ด์คŒ.. ํ•จ์ˆ˜ ์•ˆ์— ๊ตฌ์กฐ ๋‹ค์‹œ ์ž˜ ์‚ดํŽด๋ณด๊ธฐ!

 

 

๐Ÿ™Š

No default bucket found. Did you set the 'storageBucket' property when initializing the app? (storage/no-default-bucket)

๋ถ„๋ช… storageBucket์„ ์ž˜ ๋งŒ๋“ค๊ณ  import๋„ ์ž˜ํ–ˆ๋Š”๋ฐ ์ด๋Ÿฐ ์˜ค๋ฅ˜๊ฐ€ ๋‚ฌ๋‹ค.

์•Œ๊ณ ๋ณด๋‹ˆ,,, .env๋กœ ํ™˜๊ฒฝ์„ค์ •์„ ํ•  ๋•Œ์— ์ด๋ ‡๊ฒŒ ์ž˜ ํ•ด๋†“๊ณ  fbase.js ํŒŒ์ผ์—์„œ ์“ธ ๋•Œ ์•„๋ž˜์ฒ˜๋Ÿผ ์ผ๋˜๊ฒƒ,,,

๋ณ€์ˆ˜๋ช…, ์ด๋Ÿฐ ๊ฒฝ์šฐ๋Š” ๋ณต๋ถ™์„ ์ƒํ™œํ™” ํ•˜์ž..

REACT_APP_STORAGE_BUCKET=  ...
storageBucket: process.env.STORAGE_BUCKET

 

'WEB > Front-End๐ŸŒ' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

Vue3 ํŠน์ง•  (0) 2024.01.12
[React+Firebase] Set up, Auth  (0) 2022.01.04
[React Hooks] useFullscreen, useNotification, useAxios  (0) 2021.12.20
[React Hooks] useFadeln, useNetwork, useScroll  (0) 2021.12.19
[React Hooks] useConfirm, preventLeave, useBeforeLeave  (0) 2021.12.19