๐Ÿ’ป๊ธฐ์ˆ /์—๋Ÿฌ์™€์˜ ์ „์Ÿ

NextJS๋ฅผ ๋จน์–ด๋ณด๋˜ ์ค‘ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ์ด๊ฑฐ ์ด๊ฑฐ CRA๋ž‘ ํŒ๋ฐ•์ด๋„ค, ๊ทธ๋ƒฅ ์„ค์ •ํ•ด ๋ด์•ผ์ง€. ํ•˜๋‹ค๊ฐ€ ๋˜ ๋‹นํ–ˆ๋‹ค. ์ด ํฌ์ŠคํŠธ์—์„œ๋Š” NextJS๋ฅผ ์ฒ˜์Œ ์‹œ์ž‘ํ•˜๋‹ค๊ฐ€ ๋งˆ์ฃผํ•œ ์š”์ƒํ•œ ์—๋Ÿฌ์— ๋Œ€ํ•ด ์•Œ์•„๋ณธ๋‹ค. 1. ์›์ธ Create next app๋ฅผ ์‚ฌ์šฉํ•ด ์•ฑ์„ ์‹คํ–‰์‹œํ‚ค๋ ค๋‹ˆ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋“ฑ์žฅํ–ˆ๋‹ค. ๋ฌด์Šจ ํŒŒ์ผ์„ ์—ด์ง€ ๋ชปํ•œ๋‹ค๋Š”๋ฐ ์ด์ƒํ•œ ์—๋Ÿฌ๋‹ค. ๊ทธ๋ž˜์„œ ๊ฒ€์ƒ‰์„ ํ–ˆ๊ณ  3์ดˆ๋งŒ์— ๋‹ต์„ ์•Œ์•„๋ƒˆ๋‹ค. (base) โžœ next-learn git:(main) โœ— PORT=3003 npm run start > my-app@0.1.0 start > next start โ–ฒ Next.js 14.1.0 - Local: http://localhost:3003 [Error: ENOENT: no such file or directory, ..
ํ•ด๊ฒฐ๋ฐฉ๋ฒ• ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์€ ์ •๋ง ๊ฐ„๋‹จํ•˜๋‹ค. node --experimental-json-modules app.js ๋งŒ ๋ถ™์—ฌ์ฃผ๊ณ  ์‹คํ–‰ํ•˜๋ฉด ๋œ๋‹ค.
ERROR in ./frontend/public/js/handle.js 10:0-31 export 'default' (reexported as 'Feeds') was not found in './feeds.js' (possible exports: Feeds) webpack 5.72.0 compiled with 1 error in 112 ms ์›นํŒฉ์—์„œ ํด๋ž˜์Šค๋ฅผ ์ž„ํฌํŠธ ํ•  ๋•Œ ์œ„์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋œฐ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋•Œ ์ž„ํฌํŠธ ํ•  ํด๋ž˜์Šค๋ฅผ export default class๋กœ ์„ค์ •ํ•ด์ฃผ์‹œ๋ฉด ์—๋Ÿฌ๊ฐ€ ํ•ด๊ฒฐ๋ฉ๋‹ˆ๋‹ค. โŒ ์—๋Ÿฌ ์ฝ”๋“œ export class Feeds { constructor(token) { this.token = token } ... } ๐Ÿ‘ ์ˆ˜์ • ์ฝ”๋“œ export default class Feeds { ..
fs๋ชจ๋“ˆ์—์„œ ํด๋”๋ฅผ ์‚ญ์ œํ•˜๊ณ  ์‹ถ์„ ๋•Œ ์‚ฌ์ง„๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋œจ๋ฉฐ ์ •์ƒ์ ์œผ๋กœ ์‚ญ์ œ๋˜์ง€ ์•Š๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์—๋Ÿฌ ํ™”๋ฉด์—์„œ ๋ณผ ์ˆ˜ ์žˆ๋“ฏ์ด ํด๋” ๋‚ด์— ํŒŒ์ผ์ด ์žˆ์œผ๋ฉด ์—๋Ÿฌ๋ฅผ ๋ฟœ๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ์ด๋•Œ ๊ฐ•์ œ์ ์œผ๋กœ ์ œ๊ฑฐํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค. fs.rmdir(directory, { recursive: true, force: true }, (error) => { if (error) { return { isremoved: 0 } } else { return { isremoved: 1 } } }); { recursive: true, force: true } ๋ฅผ ์„ค์ •์œผ๋กœ ์ถ”๊ฐ€ํ•ด์ฃผ๋ฉด ๋ฉ๋‹ˆ๋‹ค.
์˜ค๋žœ๋งŒ์— ๋งฅ๋ถ์—์„œ ๋„์ปค๋ฅผ ์‹คํ–‰์‹œ์ผฐ๋Š”๋ฐ ์•ž์„  ์—๋Ÿฌ๊ฐ€ ๋œจ๋ฉฐ ๋„์ปค๊ฐ€ ์‚ฐ์‚ฐ์กฐ๊ฐ ๋‚˜๋ฒ„๋ ธ๋‹ค(..) ๋ฆฌ์…‹๋„ ํ•ด๋ณด๊ณ  brew๋กœ ๋ฎ์–ด ์”Œ์šฐ๋ผ๊ณ  ํ•ด์„œ ์ด๊ฒƒ์ €๊ฒƒ ๋‹ค ํ•ด๋ณด์•˜์ง€๋งŒ ์—ฌ์ „ํžˆ ์‹คํ–‰๋˜์ง€ ์•Š์•˜๋‹ค. 1. ์ตœํ›„์˜ ์ˆ˜๋‹จ (์žฌ์„ค์น˜) ์‚ฌ์‹ค ๋„์ปค์— ์ค‘์š” ๋ฐ์ดํ„ฐ๊ฐ€ ์—†๊ณ  ๋‹ค ๋‚ ๋ผ๊ฐ€๋„ ๋ณต๊ตฌ ๊ฐ€๋Šฅํ•˜๋‹ค๋Š” ์ „์žฌ ํ•˜์— ๊ฐ€์žฅ ์ข‹์€ ๋ฐฉ๋ฒ•์€ ์žฌ์„ค์น˜์ด๋‹ค. https://docs.docker.com/desktop/mac/release-notes/ Docker Desktop for Mac release notes docs.docker.com ์นฉ ์ข…๋ฅ˜์— ๋งž๋Š” ์„ค์น˜ ํŒŒ์ผ์„ ๋‚ด๋ ค๋ฐ›์€ ํ›„ ์‹คํ–‰์‹œ์ผœ์ค€๋‹ค. (๊ฐ„๋‹จ)
I. ์—๋Ÿฌ ์ƒ๊ฐ๋ณด๋‹ค ์‹ฌ์‹ฌ์ฐฎ๊ฒŒ ๋ณผ ์ˆ˜ ์žˆ๋Š” ๊ท€์—ฌ์šด ์—๋Ÿฌ์ž…๋‹ˆ๋‹ค. ์—ฌ๋Š ๋•Œ์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ ์Šคํƒ์˜ค๋ฒ„ํ”Œ์— ๋“ฑ์žฌ(?)๋˜์–ด ์žˆ๋Š”๋ฐ ๋งํฌ๋Š” ์•„๋ž˜ ์ฒจ๋ถ€ํ•ด๋‘๊ฒ ์Šต๋‹ˆ๋‹ค. II. ํ•ด๊ฒฐ๋ฐฉ๋ฒ• div.insertAdjacentElement ๋ฅผ div.insertAdjacentHTML ๋กœ ๋ณ€๊ฒฝํ•ด์ฃผ๋ฉด ๋ฉ๋‹ˆ๋‹ค. https://stackoverflow.com/questions/42628635/element-insertadjacenthtml-api-throws-error-in-chrome-55-0-2883-87 Element.insertAdjacentHTML() API throws error in chrome 55.0.2883.87 I found the explaination about the API here, which tells me th..
์ฃผํ”ผํ„ฐ ๋…ธํŠธ๋ถ์ด ๋˜ ๋ง์ฝ์ด๋‹ค. ํฌํŠธ ๊ถŒํ•œ ๋ฌธ์ œ๋กœ ๋‹ค๋ฅธ ํฌํŠธ๋ฅผ ํ• ๋‹นํ•ด์ฃผ๋ฉด ๋œ๋‹ค. jupyter-notebook --ip=localhost --port=10023 ๋กœ ํ•ด๊ฒฐํ•˜๋ฉด ๋œ๋‹ค.
I. ๋ฌธ์ œ npm ERR! code ERESOLVE npm ERR! Cannot destructure property 'name' of 'node' as it is null. npm install ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๋‹ˆ ์œ„์™€๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋‚˜์˜ค๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ๊ตฌ๊ธ€์— ๊ฒ€์ƒ‰ํ•ด๋ณด๋‹ˆ https://stackoverflow.com/questions/65724281/cannot-destructure-property-name-of-node-as-it-is-null Cannot destructure property 'name' of 'node' as it is null when I want to install dependencies of the aurelia project, got this error: npm ERR! code 1..
DipokalHHJ
'๐Ÿ’ป๊ธฐ์ˆ /์—๋Ÿฌ์™€์˜ ์ „์Ÿ' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก