siwon33767492
@siwon33767492
Students
-
Reviews
-
Course Rating
-
Posts
Q&A
multer ์ฉ๋์ ํ
์ ์ ์ฌ์ง์ ์ ๊ฐ network ๋ฅผ ์๋ชป๋ณธ๊ฑฐ๊ฐ์ต๋๋ค. 1.3MB ์ฌ๋ฆฌ๋ size 1.3MB ๋จ๊ธดํ๋ค์. ๊ทผ๋ฐ limits 1MB ๋ก ํด๋๋๋ฐ ์ ์ฌ๋ผ๊ฐ๋์ง ๋ชจ๋ฅด๊ฒ ๋ค์ ใ ใ (์ฌ์ง)
- 0
- 1
- 420
Q&A
npm run build
import Image from 'next/image' function Avatar() { return Image src="/me.png" alt="me" width="64" height="64" /> } export default Avatar ์ด๊ฑฐ ๋ง์ํ์๋ ๊ฑฐ ๋ง๋์? ์ ๊ฐ ๊ทผ๋ฐ ์์ ๋ค์ผ๋ฉด์ next9 ๋ฒ์ ์ผ๋ก ์งํํ๋๋ฐ ์ ๊ฑด 10๋ฒ์ ์ด์๋ง ๋๋ค๊ณ ํด์ file-loader ์ค์นํ๊ณ front/webpack.config.json ์ค์ ํ๋ ๊ฑฐ๊ฑฐ๋ ์.. ๊ทธ๋ฅ ์ง๊ธ ๋ฅ์คํธ 11๋ฒ์ ์ผ๋ก ์ฌ๋ฆฌ๊ณ front/next.config.js ์์ ์๋ ์ง์ฐ๊ณ const withImages = require('next-images');module.exports = withImages(); front/webpack.config.json ํ์ผ ๊ทธ๋ฅ ์ ์ฒด ์ง์ฐ๋ฉด ๋ ๊น์? Q2. ์ ๊ฐ ์ ์ค๋ฅ๊ฐ ๋๊ณ ๋๋ค์์ npm run dev ๋ค์ ํด๋ดค๋๋ฐ ์ฝ์์ ์๋์ ๊ฐ์ ์ค๋ฅ๊ฐ ๋ค์ ๋จ๋๋ฐ์ Warning: Reverting webpack devtool to 'eval-source-map'. Changing the webpack devtool in development mode will cause severe performance regressions. ./public/tag.png 1:0 Module parse failed: Unexpected character '๏ฟฝ' (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders (Source code omitted for this binary file) ์์๋ ๋ง์๋๋ ธ๋ฏ์ด ์ ๊ฐ next9 ๋ฒ์ ์ผ๋ก ํ์ด์ IMAGE ํ๊ทธ๋ฅผ ์์ฐ๊ณ file-loader ๋ฅผ ์ค์นํด์ ์ผ์๊ฑฐ๋ ์ build ์ ์๋ ์ ๋ฐ ๋ฌธ์ ๊ฐ ์์๋๋ฐ build ๋ฅผ ํ๊ณ ๋ ๋ค์๋ถํฐ ๋ฌธ์ ๊ฐ ์๊ธฐ๋ ์ด์ ๋ Warning: Reverting webpack devtool to 'eval-source-map'. ์ด ๋ฌธ๊ตฌ์ ๊ด๋ จ์ด ์๋ ๊ฑธ๊น์? Q3. next์์๋ webpack.config.js ๋ง๊ณ next.config.js ์ ๋ชจ๋ ์ค์ ์ ํด์ค์ผ ํ๋์? webpack.config.js ๋ next.config.js ๋๋ค ์์ด๋ ๋๋ ๊ฑด์ง ๊ถ๊ธํฉ๋๋ค .. ์ฃผ๋ง์์นจ๋ถํฐ ์ง๋ฌธ์ด ๋๋ฌด ๊ธธ์ด์ ธ ์ฃ์กํฉ๋๋ค ๐ฅฒ
- 0
- 2
- 580
Q&A
์ธ์ ์ฟ ํค
๋ค ์๋ ๊ฑฐ ๊ฐ์ต๋๋ค. (์ฌ์ง)
- 0
- 2
- 256
Q&A
npm module ์ค์น
๊ฐ์ฌํฉ๋๋ค.
- 0
- 2
- 249




