error

    [Next.js] next build warn 문구 제거

    warn 문구 1 info - Linting and checking validity of types ...warn - The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-config 해결 어플리케이션에서 별도의 eslint 설정파일을 사용하는 경우 명시해줘야한다. // .eslintrc.js module.exports = { extends: ['plugin:@next/next/recommended'], }; 참조 https://nextjs.org/docs/basic-features/eslint#migrating-exi..

    [Node.js][mySQL] ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server;

    ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; mysql installer > server 옆에 reconfigure > Auth 설정가서 legacy 선택 > 완료 www.inflearn.com/questions/3637 nodejs와 mysql 연동 에러 - 인프런 질문 - nodejs와 mysql 연동 에러 Connection.connect(); 를 추가한 후 저장하면 다음과 같은 에러가 뜹니다. Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by serv..

    [React] Uncaught TypeError: Invalid attempt to destructure non-iterable instance.

    const handleChange = e => { const [ value ] = e.target; // error!! 객체를 배열로 구조분해할당 시도함!! setText(value); } // 수정 const handleChange = e => { const { value } = e.target; // [] 를 {}로 바꿔줌 setText(value); } e.target은 객체이지만 배열의 형태로 구조분해할당 시도했기 때문에 에러가 생겼다. []를 {}로 바꿔주어 해결하였다. stackoverflow.com/questions/42141393/react-js-error-invalid-attempt-to-destructure-non-iterable-instance React JS Error: Invali..

    [React] Uncaught Error: Too many re-renders. React limits the number of renders to prevent an infinite loop.

    Uncaught Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. 문제 해결 방법: import React, { useState, useEffect } from 'react'; import ReactDOM from 'react-dom'; const Counter = () => { const [count, setCount] = useState(0); useEffect(() => { console.log('effect') }); return ( {count} click // ERROR!! ) } ReactDOM.render( , document.getElementById('root') ) 위의 ..