
[Node] sequelize throw new Error(`${source.name}.${_.lowerFirst(Type.name)} called with something that's not a subclass of Sequelize.Model`); ^Error: Image.belongsTo called with something that's not a subclass of Sequelize.Model
2023. 11. 5. 22:59
개발/Error note
sequelize 설정을 끝내고 테이블을 생성하려는데 오류가 떴다. sequelize throw new Error(`${source.name}.${_.lowerFirst(Type.name)} called with something that's not a subclass of Sequelize.Model`); ^Error: Image.belongsTo called with something that's not a subclass of Sequelize.Model 이번 오류는 삽질을 많이했는데 이유가 Error: Image.belongsTo called with something that's not a subclass of Sequelize.Model at Image. (C:\Users\INA\Documen..

[Next.js] 에서 Unhandled Runtime ErrorError: Text content does not match server-rendered HTML.See more info here: https://nextjs.org/docs/messages/react-hydration-error
2023. 11. 1. 20:20
개발/Error note
오류상황 더미데이터 생성 디펜던시 @faker-js/faker 를 사용한 후 아래와 같은 오류가 발생했다. (faker는 사용하면 안됩니다..!) Text가 서버랜더링 때와 일치하지 않는다는 뜻 같았다. 비슷하게 css로도 해당 오류를 본 적이 있었고, fakerjs 홈페이지에 해결방법이 있었다. 해결방법 faker.seed(123); faker를 수행하는 코드부분 위쪽에 .seed 함수를 먼저 불러주면 되는데, 공식문서 설명으로는 일관된 결과를 유지해 주는 함수라고 적혀져있다. 그 덕분에 서버랜더링 이후에도 오류가 발생하지 않는 것같다. 123말고 문자열을 적어봤는데 다시 오류가 떠서.. 숫자를 해봤더니 숫자는 괜찮더라. (시퀀스 느낌이라 그런가?) 무튼 그냥 공식문서 샘플대로 123을 적어두는게 좋을..

[Javascript] Uncaught TypeError: (0 , immer__WEBPACK_IMPORTED_MODULE_0__.default) is not a function
2023. 10. 31. 21:13
개발/Error note
Uncaught TypeError: (0 , immer__WEBPACK_IMPORTED_MODULE_0__.default) is not a function redux 구현 에서 불변성 편리함을 위해 immer 적용 후 위와 같은 에러가 나타났다. 해결방법 import produce from 'immer'; import {produce} from 'immer'; 아래처럼 중괄호로 감싸주면 된다. immer 사이트에서도 저렇게 사용하고있어서 혹시나 해서 감싸봤더니 오류가 사라지고 화면랜더링이 정상적으로 작동했다. import React, { useEffect,useState } from 'react' import axios from 'axios' 문득 중괄호와 그냥 import의 차이가 궁금해져서 구글링을 ..

[Next.js ] GET http://localhost:3000/ 500 (Internal Server Error) | index.js:654 Uncaught TypeError: Cannot read properties of undefined (reading 'getInitialProps')
2023. 10. 30. 08:15
개발/Error note
강의를 따라하던중 Next.js에 리덕스(리덕스툴킷x 일단 리덕스로하고 강의끝내고 마이그레이션할 것!)를 추가했는데 GET http://localhost:3000/ 500 (Internal Server Error) index.js:654 Uncaught TypeError: Cannot read properties of undefined (reading 'getInitialProps') 이렇게 에러가 빠방 떴다. 해결방법 // _app.js import React from 'react'; import Head from 'next/head'; import PropTypes from 'prop-types'; import wrapper from '../store/configureStore'; const Node..

[Android] Entry name 'res/animator/linear_indeterminate_line1_head_interpolator.xml' collided
2023. 10. 20. 07:52
개발/Error note
Entry name 'res/animator/linear_indeterminate_line1_head_interpolator.xml' collided 안드로이드 빌드하는데 위의 오류가떴다 해결방법 Build - Clean Project 빌드중에 소스나 설정들이 꼬인거라 Clean Project를 하고 다시 빌드를 해주면 BUILD SUCCESSFUL 이 뜨는걸 볼 수 있다.