leejg
@ljg02301590
Reviews Written
-
Average Rating
-
Posts
Q&A
webpack-dev-server ์ค๋ฅ ์ง๋ฌธ์์ต๋๋ค.
ํน์ ์๋ถ๋ค ์๋ฌ ์ํฉ์์ webpack-dev-server๋ฅผ 4๋ฒ์ ์ผ๋ก ์ฌ์ฉํ์ค ๊ฒฝ์ฐ webpack.config.ts ํ์ผ ๋ด์ import WebpackDevServer from 'webpack-dev-server'; declare module 'webpack' { interface Configuration { devServer?: WebpackDevServer.Configuration; } } ์ด๋ ๊ฒ ์ถ๊ฐํด๋ ํด๊ฒฐ๋๊ธด ํ๋ค์! ์ฐธ๊ณ ํ์ ๋ ๊ด์ฐฎ์๋ฏ ์ถ์ต๋๋ค ์ฐธ๊ณ : https://githubmate.com/repo/survivejs/webpack-merge/issues/141?page=2
- 0
- 9
- 1.1K
Q&A
์ง๋ฌธ์ ๋๋ค!
์...๊ฐ์ฌํฉ๋๋ค!
- 0
- 4
- 275
Q&A
์ง๋ฌธ์ ๋๋ค!
๋ต๋ณ ๊ฐ์ฌ๋๋ฆฝ๋๋ค. ๋ง์๋๋ก Menu.item ๋ง๊ณ ๊ทธ ๋ด๋ถ์ Icon ์ด๋ span ์ onClick ์ด๋ฒคํธ๋ก Modal ์ ํธ์ถํ๋ ์ ๋๋ค์. ์ด ๋ฐฉ๋ฒ์ Menu.item ๋ฒ์ ๋ด์ Icon ์ด๋ span ๋ด์ฉ ๋ฒ์๋ง ํด๋ฆญํด์ผ Modal ์ ์ถ๋ ฅํด์ ์กฐ๊ธ ๋ถ์์ฐ์ค๋ฌ์ด๋ฐ, ํน์ Menu.item ์์ฒด๋ฅผ ํด๋ฆญํ์ ๋ Modal์ ์ถ๋ ฅํ ๋ค๋ฅธ ๋ฐฉ์์ด ์์๊น์..?
- 0
- 4
- 275
Q&A
์ง๋ฌธ์ ๋๋ค.
์ ๋ค ์ ๊ฐ ์๋ชป๋ง์๋๋ ธ๋ค์ ๊ทธ๋ผ ํน์ TypeError: "Invalid attempt to spread non-iterable instance" ์ด ์๋ฌ๋ ๊ทธ ์์ธ์์ ๋น๋กฏ๋๊ฑธ๊น์?:
- 0
- 6
- 5.2K
Q&A
์ง๋ฌธ์ ๋๋ค.
์ฃ์กํฉ๋๋ค ~ ๋ง์ํ์ ๋ถ๋ถ๋ค ์์ ํด์ ๋ค์ ์ ๋ก๋ํ์ต๋๋ค.https://github.com/ljg0230/nodebird_ljg/tree/hotfix_1
- 0
- 9
- 3K
Q&A
์ง๋ฌธ์ ๋๋ค.
์ฃ์กํฉ๋๋ค ใ ๋ง์ํด์ฃผ์ ๋ถ๋ถ๋ค ๋ก๊ทธ๋ก ํ์ธํ๋๋ฐ ๋ฐ์ดํฐ๋ ์ ์์ ์ผ๋ก ๋ค์ด์์ด๋ค์..
- 0
- 9
- 3K
Q&A
์ง๋ฌธ์ ๋๋ค.
๋ค 401 ๋ก๊ทธ์ธ ์๋ฌ๋ง๊ณ ๋ ์ ํํ๊ฒ ํ์ ์ด ์๋์์ hashtag๋ก ๋ถ๋ฌ์ค๋๊ฑด ์ ์์ ์ผ๋ก ์ ๋๊ณ , ๋ฐฉ๊ธ ์ฟ ํค ์ญ์ ํ ๋ค์ํด๋ด๋ ๊ทธ๋๋ก๋ค์
- 0
- 9
- 3K
Q&A
์ง๋ฌธ์ ๋๋ค.
๋ค ๋ฆฌ๋์คํด์๋ LOAD_USER_SUCCESS, LOAD_USER_POSTS_SUCCESS ํ์ธํ๊ณ , ์ฝ์ํญ ์๋ฌ๋ ํ์ธ์ ํด๋ดค๋๋ฐ... ์์ธ์ ๋ชป์ฐพ์๋ค์Error: "Request failed with status code 401" createError createError.js:16 settle settle.js:17 handleLoad xhr.js:59 index.js:1 The above error occurred in one of your React components: in div (created by User) in span (created by Context.Consumer) in li (created by Context.Consumer) in ul (created by Context.Consumer) in div (created by Context.Consumer) in Card (created by User) in div (created by User) in User (created by NodeBird) in div (created by Context.Consumer) in Col (created by AppLayout) in div (created by Context.Consumer) in Row (created by AppLayout) in div (created by AppLayout) in AppLayout (created by NodeBird) in Provider (created by NodeBird) in NodeBird (created by withRedux(NodeBird)) in withRedux(NodeBird) in Suspense (created by AppContainer) in Container (created by AppContainer) in AppContainer React will try to recreate this component tree from scratch using the error boundary you provided, Container. index.js:1 e index.js:1 NextJS 22 Redux 5 e 2:1 Redux 12 Warning: Container: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI. index.js:1 Error: Objects are not valid as a React child (found: object with keys {id}). If you meant to render a collection of children, use an array instead. in div (created by User) in span (created by Context.Consumer) in li (created by Context.Consumer) in ul (created by Context.Consumer) in div (created by Context.Consumer) in Card (created by User) in div (created by User) in User (created by NodeBird) in div (created by Context.Consumer) in Col (created by AppLayout) in div (created by Context.Consumer) in Row (created by AppLayout) in div (created by AppLayout) in AppLayout (created by NodeBird) in Provider (created by NodeBird) in NodeBird (created by withRedux(NodeBird)) in withRedux(NodeBird) in Suspense (created by AppContainer) in Container (created by AppContainer) in AppContainer
- 0
- 9
- 3K
Q&A
์ง๋ฌธ์ ๋๋ค
์ฌ๊ธฐ์ ๊ธฐ ๋ก๊ทธ๋ฅผ ์ฐ์ด๋ณด๊ณ ์์ง๋ง ์์ง ๋ชป์ฐพ์๋ค์ใ ... ํฌ์คํธ ์ถ๊ฐ (์ ๋ ฅ๊ฐ 123)๋ถํฐ์ console.log๋ฅผ ์์ฐจ์ ์ผ๋ก ํ์ธํด๋ณด๋ฉด in post sagas: {"content":"123"} post.js:60 in index.js(pages): [null,{"id":1,"User":{"id":1,"nickname":"์ด์ ๊ฑธ"},"content":"์ฒซ ๋ฒ์งธ ๊ฒ์๊ธ","img":"","Comments":[]}] index.js:19 in PostCard.js / post: undefined 2 PostCard.js:42 ์ด๋ ๊ฒ undefined๊ฐ ๋๋๊ฑธ ํ์ธ์ ํ์ผ๋ ์ด๋์ ๋ฌธ์ ๊ฐ ๋ ๊ฑด์ง... ๊ทผ๋ฐ ์ด๊ฒ backend ์์ ๋ฌธ์ ๊ฐ ๋ ์ ์๋๊ฑด๊ฐ์???
- 0
- 5
- 216
Q&A
์ง๋ฌธ์ ๋๋ค
๋ต๋ณ ๊ฐ์ฌ๋๋ฆฝ๋๋ค~reducer ADD_POST_SUCCESS์์ console.log(action.data)๋ผ๋ ๋ง์์ reduce ํจ์ ๋ด์ switch ๋ฌธ ์์์ ๋ก๊ทธ๋ฅผ ์ฐ์ด๋ณด๋ผ๋ ๋ง์์ธ๊ฐ์? ์ฐ์ sagas ์์ function* addPost(action) { try { const result = yield call(addPostAPI, action.data) yield put({ type: ADD_POST_SUCCESS, data: result.data, }); console.log(action.data); } catch (e) { yield put({ type: ADD_POST_FAILURE, error: e, }); } } ์ด๋ ๊ฒ ๋ก๊ทธ๋ฅผ ์ฐ์ผ๋ฉด object { content: "#test" } ์ด๋ฐ ์์ผ๋ก ์ ๋ ฅ๊ฐ์ด ๋ก๊ทธ์ ์ ๋์ค๊ธด ํฉ๋๋ค
- 0
- 5
- 216




