Posts
Q&A
webpack ์คํ ๋์ค ์ค๋ฅ
const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin'); ์๊ฑฐ ๋งจ ์์ ์ถ๊ฐํ๊ณ new webpack.LoaderOptionsPlugin ({ debug : true }) ์ด๊ฑฐ ๋์ new LoaderOptionsPlugin ({ debug : true }) ์ด๋ ๊ฒ ๋ณ๊ฒฝํด์ฃผ๋ฉด ์ ์์ ์ผ๋ก ๋น๋๋์!
- 0
- 2
- 683
Q&A
LandingPage.js .map(์ฝ๋ฐฑํจ์)
๋ฉ๋ชจ ::::: ๋ฐํํ๋ ๊ฐ์ด ๊ฐ์ฒด์ธ๋ฐ {}๋ฅผ ์ฐ๋ฉด ์ด์์ฒด๊ฐ ๊ฐ์ฒด๋ก ์ดํดํ๊ธฐ ๋๋ฌธ์ ()๋ก ๊ฐ์ธ์ค๋ค (๋ค๋ฅธ๊ฐ์ ๋ณด๋ค๊ฐ ์๊ฒ๋์์ต๋๋ค ์ค๋ช ์ด ์ด์ํด์ ๋ถ์กฑํ ๋ถ๋ถ์ ์ถ๊ฐ ์ค๋ช ์ผ๋ก ๋ถํ๋๋ฆด๊ฒ์!)
- 0
- 1
- 241
Q&A
npm run dev ์ค๋ฅ
์ ๋๋ก scripts ๋ช ๋ น์ด ์ง์ ํด์ฃผ์ จ๋๋ฐ๋ ๊ทธ๋ ๋ค๋ฉด npm update ํ๊ณ ๋ค์ ์คํํ๋ฉด ๋ ๊ฑฐ์์
- 0
- 3
- 4.2K
Q&A
์๋ ํ์ธ์ ์ ์๋
-------------------2๋ฒ ์ข ๋ฅ Warning: Updating a style property during rerender (background) when a conflicting property is set (backgroundPosition) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values. ์ด ์๋ฌ๋ ๋ฆฌ๋ ๋๋ง ๋ ๋ ๊ฐ์ด ์์ด๋ css ์์ฑ์ด ๋ ๋๋ง ๋๋ฒ๋ ค์ ์๊ธฐ๋ ๋ถ๋ถ์ด์์ ๊ทธ๋์ ๊ฐ์ฌ๋๊ป์ ์์ {MainMovieImage && ๋ก ๊ฐ์ธ์ฃผ์ จ๊ณ ์ด๋ ๊ฒ ํ๋๋ฐ๋ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ฉด useState ์ด๊ธฐํํ ๋ useState(null) ์ด๋ ๊ฒ ์ฐ๋ฉด ํด๊ฒฐ๋์
- 0
- 2
- 554
Q&A
bundle.js ๋ด์ฉ์ด index.js์ ๋์ผํฉ๋๋ค
console.log( "๋ฌธ์์ด~~~"); ์ด ๋ฌธ์ฅ ์์ฒด๊ฐ js ํธ๋์คํผํ ๋ด์ฉ์ด ์์ด์ ๋๊ฐ์๊ฑฐ์์ var name ="hans"; console.log(`์๋ ํ์ธ์์ฐ~~ ${name}`); ์ด๋ฐ์์ผ๋ก es6๋ฌธ๋ฒ ์ฐ๋ฉด ํธ๋์คํผ ๋์ ๋์์
- 0
- 4
- 659
Q&A
์๋ฌ ๋์์ฃผ์ธ์ ใ ใ
node ์ฃผ์๊ฐ ์๋ชป๋์ จ์ด์~ server ํด๋๋ก ์ด๋ํ๊ธฐ ๋๋ฌธ์ node server/index.js ์ด๋ ๊ฒ ์์ server/ ๋ฅผ ์ ์ด์ฃผ์ด์ผ๋์
- 0
- 1
- 274
Q&A
bodypaser์ ์ค๊ทธ์ด์ ธ์๋๊ฑฐ๋ ์๊ทธ๋ฐ๊ฑธ๊น์?
์ ๋ ๋ฐ์ค์ณ์ ธ์ ํ์ธํด๋ณด๋ body-parser ๋ชจ๋ ์์ฒด๊ฐ @deprecated ์ฒ๋ฆฌ๋์ด export ๋๋ ๊ฒ์ด ์์ด์ ์ฌ์ฉ์ด ์๋๋ค๊ณ ํฉ๋๋ค. ๋์ ๋ค๋ฅธ ๊ฒ์๊ธ์์ ํ์ธํ๋ฏ์ด express ๋ชจ๋์ express() ์์ bodypaser๊ฐ ์ํํ๋ ํจ์๋ค์ด ๋ด์ฅ๋์ด์๋๋ผ๊ตฌ์ ๊ทธ๋์ express ๋ชจ๋์ import ํ๊ธฐ ๋๋ฌธ์ express.urlencoded() ๊ฐ ์ฌ์ฉ ๊ฐ๋ฅํฉ๋๋ค
- 2
- 2
- 233