๐ป๊ธฐ์ /์๋ฌ์์ ์ ์
[ NodeJS ] TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".json" ์๋ฌ
ํด๊ฒฐ๋ฐฉ๋ฒ ํด๊ฒฐ๋ฐฉ๋ฒ์ ์ ๋ง ๊ฐ๋จํ๋ค. node --experimental-json-modules app.js ๋ง ๋ถ์ฌ์ฃผ๊ณ ์คํํ๋ฉด ๋๋ค.
[ Webpack5 ] export 'default' was not found in ์๋ฌ
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 { ..
[ NodeJS ] fs ๋ชจ๋ ENOTEMPTY: directory not empty, rmdir ์๋ฌ
fs๋ชจ๋์์ ํด๋๋ฅผ ์ญ์ ํ๊ณ ์ถ์ ๋ ์ฌ์ง๊ณผ ๊ฐ์ ์๋ฌ๊ฐ ๋จ๋ฉฐ ์ ์์ ์ผ๋ก ์ญ์ ๋์ง ์๋ ๊ฒฝ์ฐ๊ฐ ์์ต๋๋ค. ์๋ฌ ํ๋ฉด์์ ๋ณผ ์ ์๋ฏ์ด ํด๋ ๋ด์ ํ์ผ์ด ์์ผ๋ฉด ์๋ฌ๋ฅผ ๋ฟ๊ฒ ๋ฉ๋๋ค. ์ด๋ ๊ฐ์ ์ ์ผ๋ก ์ ๊ฑฐํ ์ ์๋ ๋ฐฉ๋ฒ์ด ์์ต๋๋ค. fs.rmdir(directory, { recursive: true, force: true }, (error) => { if (error) { return { isremoved: 0 } } else { return { isremoved: 1 } } }); { recursive: true, force: true } ๋ฅผ ์ค์ ์ผ๋ก ์ถ๊ฐํด์ฃผ๋ฉด ๋ฉ๋๋ค.
[ docker ] one of the sub-processes failed: com.docker.driver.amd64-linux -addr fd:3 -debug ์๋ฌ
์ค๋๋ง์ ๋งฅ๋ถ์์ ๋์ปค๋ฅผ ์คํ์์ผฐ๋๋ฐ ์์ ์๋ฌ๊ฐ ๋จ๋ฉฐ ๋์ปค๊ฐ ์ฐ์ฐ์กฐ๊ฐ ๋๋ฒ๋ ธ๋ค(..) ๋ฆฌ์ ๋ ํด๋ณด๊ณ brew๋ก ๋ฎ์ด ์์ฐ๋ผ๊ณ ํด์ ์ด๊ฒ์ ๊ฒ ๋ค ํด๋ณด์์ง๋ง ์ฌ์ ํ ์คํ๋์ง ์์๋ค. 1. ์ตํ์ ์๋จ (์ฌ์ค์น) ์ฌ์ค ๋์ปค์ ์ค์ ๋ฐ์ดํฐ๊ฐ ์๊ณ ๋ค ๋ ๋ผ๊ฐ๋ ๋ณต๊ตฌ ๊ฐ๋ฅํ๋ค๋ ์ ์ฌ ํ์ ๊ฐ์ฅ ์ข์ ๋ฐฉ๋ฒ์ ์ฌ์ค์น์ด๋ค. https://docs.docker.com/desktop/mac/release-notes/ Docker Desktop for Mac release notes docs.docker.com ์นฉ ์ข ๋ฅ์ ๋ง๋ ์ค์น ํ์ผ์ ๋ด๋ ค๋ฐ์ ํ ์คํ์์ผ์ค๋ค. (๊ฐ๋จ)
[ JS ์๋ฌ ] Uncaught TypeError: Failed to execute 'insertAdjacentElement' on 'Element': parameter 2 is not of type 'Element'.
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..
[ ์ฃผํผํฐ๋ ธํธ๋ถ ] ERROR: the notebook server could not be started because no available port could be found ํด๊ฒฐ
์ฃผํผํฐ ๋ ธํธ๋ถ์ด ๋ ๋ง์ฝ์ด๋ค. ํฌํธ ๊ถํ ๋ฌธ์ ๋ก ๋ค๋ฅธ ํฌํธ๋ฅผ ํ ๋นํด์ฃผ๋ฉด ๋๋ค. jupyter-notebook --ip=localhost --port=10023 ๋ก ํด๊ฒฐํ๋ฉด ๋๋ค.
[ Nodejs ] Cannot destructure property 'name' of 'node' as it is null ์๋ฌ
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..
pipework ์ค์น๊ฐ ์๋ ๋
sudo git clone https://github.com/jpetazzo/pipework.git sudo cp -rp pipework/pipework /usr/local/bin/ sudo apt-get install arping bridge-utils -y ๋ฅผ ์ ๋ ฅํด์ฃผ๋ฉด ํด๊ฒฐ๋ฉ๋๋ค. ์๋ฌ๋ด์ฉ