묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결Slack 클론 코딩[실시간 채팅 with React]
npm run build 에러
제로초님, 안녕하세요! npm run build 하고 index.html 라이브 서버 켜봤는데 화면에 아무것도 나오지 않습니다..! dist 폴더와 App.js 파일은 잘 생겼구요 아래는 에러 내용입니다. 제로초님의 소스코드를 살펴보니 package.json에 emotion/babel-plugin은 설치되어 있지 않았는데ㅜㅜ 그걸 설치하면 해결되는걸까요? $ npm run build > client@1.0.0 build C:\Users\user\Desktop\coding\sleact\client > cross-env TS_NODE_PROJECT="tsconfig-for-webpack-config.json" webpack asset app.js 4.28 KiB [emitted] (name: app) ./client.tsx 39 bytes [built] [code generated] [1 error] ERROR in ./client.tsx Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find module '@emotion/babel-plugin' Require stack: - C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\config\files\plugins.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\config\files\index.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\index.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\babel-loader\lib\index.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\loader-runner\lib\loadLoader.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\loader-runner\lib\LoaderRunner.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack\lib\NormalModuleFactory.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack\lib\Compiler.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack\lib\webpack.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack\lib\index.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack-cli\lib\webpack-cli.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack-cli\lib\bootstrap.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack-cli\bin\cli.js - C:\Users\user\Desktop\coding\sleact\client\node_modules\webpack\bin\webpack.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15) at resolve (C:\Users\user\Desktop\coding\sleact\client\node_modules\v8-compile-cache\v8-compile-cache.js:164:23) at resolveStandardizedName (C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\config\files\plugins.js:111:7) at resolvePlugin (C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\config\files\plugins.js:55:10) at loadPlugin (C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\config\files\plugins.js:63:20) at loadPlugin.next (<anonymous>) at createDescriptor (C:\Users\user\Desktop\coding\sleact\client\node_modules\@babel\core\lib\config\config-descriptors.js:187:16) at createDescriptor.next (<anonymous>) at step (C:\Users\user\Desktop\coding\sleact\client\node_modules\gensync\index.js:261:32) at evaluateAsync (C:\Users\user\Desktop\coding\sleact\client\node_modules\gensync\index.js:291:5) sleact (webpack 5.51.1) compiled with 1 error in 1475 ms npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! client@1.0.0 build: `cross-env TS_NODE_PROJECT="tsconfig-for-webpack-config.json" webpack` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the client@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2021-08-24T16_04_56_594Z-debug.log
-
미해결[파이토치] 실전 인공지능으로 이어지는 딥러닝 - 기초부터 논문 구현까지
cam모델 구축 질문드립니다.
1.data, label = trainset[img_sample] # 이미지 한 장과 라벨 불러오기 라고 설명 되 있는데 [img_sample]이 어디서 나온건지 , 무슨역할을 하는건지 모르겠습니다.... ㅜ 2. hook을 통해 feature map을 가져온다고 하셨는데 model.layer4[1].bn2.register_forward_hook(get_activation('final')) 여기서 'final'은 임의로 name을 정하신건가요? 3. data.unsqueeze_(0) 차원을 늘린 이유가 궁굼합니다
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
안녕하세요 개발자님
개발자님이 만드신 어플에서 꿀팁 부분 게시판을 눌렀을때 웹으로 이동하는게 아닌 다른방식인데 밑에 그림처럼 이부분의 강의 내용은 어디있는지 알수있을까요?
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 영화 사이트 만들기
NavBar 질문
안녕하세요 강사님! 다름이 아니라 boiler-plate 클론 이후 Movie-App 만들기 까지 완료하였는데요, NavBar 의 메인 로고 부분의 이미지를 변경해보고 싶어서 다른 이미지를 삽입하고자 하는데 도대체 어디 부분을 건드려야 할지 잘 모르겠습니다!!기존에 movie-app-ko 파일에는 components파일에 assets/images 라는 폴더가 있고, 내부에 movieapp 의 이미지가 저장되어있는데 이 저장된 이미지를 어느부분에서 사용하시고 있는지 전혀 모르겠습니다...!! img src 를 통해서 새로운 이미지를 삽입해보려고 하면 계속 오류가 생겨서... 답변 부탁드립니다!!
-
미해결취미로 해킹#1(OverTheWire - Bandit)
bandit16 -> 17
ssh -i /tmp/new/rsakey bandit17@localhost 를 입력하면 Enter passphrase for key '/tmp/new/rsakey': 라는 문구가 뜹니다. 어떻게 해야하나요?
-
미해결홍정모의 따라하며 배우는 C++
resize() 이전에 질문드렸던 내용 code 올려드립니다.
#include <iostream> #include <vector> #include <array> #include <initializer_list> class IntArray { int m_length = 0; int* m_data = nullptr; public: IntArray(int length_in) : m_length(length_in) { m_data = new int[m_length]; } IntArray(const std::initializer_list<int>& list) : IntArray(list.size()) { initialize(list); } ~IntArray() { delete[] m_data; } void initialize(const std::initializer_list<int>& list) { int count = 0; for (auto& ele : list) { m_data[count] = ele; ++count; } } void reset() { m_length = 0; if (m_data != nullptr) { delete[] m_data; m_data = nullptr; } } void resize(const int& size) { int pre_length = m_length; m_length = size; if (m_data != nullptr) { int* temp = new int[pre_length]; for (int i = 0; i < pre_length; i++) temp[i] = m_data[i]; delete[] m_data; m_data = new int[m_length]; //for (int i = 0; i < m_length; i++) for (int i = 0; i < pre_length; i++) { m_data[i] = temp[i]; //if (i <= pre_length) m_data[i] = temp[i]; //else m_data[i] = 0; if (i == size - 1) break; //size가 작아질 경우 } delete[] temp; } else m_data = new int[m_length]; } void insertBefore(const int& value, const int& ix) { resize(m_length + 1); for (int i = 0; i < m_length; i++) { if (m_data[i] == ix) { for (int j = m_length - 1; j > i; j--) m_data[j + 1] = m_data[j]; m_data[i+1] = value; break; } } } void remove(const int& ix) { for (int i = 0; i < m_length; i++) { if (m_data[i] == ix) { for (int j = i; j < m_length - 1; j++) m_data[j] = m_data[j + 1]; resize(m_length - 1); break; } } } void push_back(const int& value) { resize(m_length + 1); m_data[m_length -1] = value; } friend std::ostream& operator << (std::ostream& out, const IntArray& arr) { for (int i = 0; i < arr.m_length; i++) out << arr.m_data[i] << " "; return out; } }; int main() { IntArray my_arr{ 1,3,5,7,9 }; std::cout << my_arr << std::endl; my_arr.insertBefore(10,1); std::cout << my_arr << std::endl; my_arr.remove(3); std::cout << my_arr << std::endl; my_arr.push_back(13); std::cout << my_arr << std::endl; std::vector<int> int_vec; std::array<int, 10> int_arr; return 0; } 웨에 코드입니다 사이즈를 크게 바꾸면서 빈자리에는 초기화를 안해주었는데 그때문에 문제가 생기는게 아닐까 했지만 나이라고 하셔서 코드올려드립니다. 주석처리 된대로 바꾸면 잘 동작합니다 ㅠ 아래 인터넷 컴파일러 주소 올려드립니다. http://tpcg.io/yjKoNFmS
-
해결됨풀스택 리액트 토이프로젝트 - REST, GraphQL (for FE개발자)
onupdate 매개변수
onupdate 함수의 매개변수를 (id, text) 로 넣어주었더니! 수정 버튼을 클릭 했을 때 내용이 바뀌지 않더라구요 그래서 혹시나해서 매개변수를 (text, id) 로 변경했더니 수정 기능이 제대로 작동 했습니다. 매개변수 순서가 바뀌면 문제가 있는걸까요??
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
h2.bat 실행 관련 질문입니다
안녕하세요,, bin 에서 h2.bat를 실행하거나 cmd에서 h2.bat 후 엔터를 해도 서버모드로 접속이 안됩니다,, 어떻게 해야 할까요..?
-
미해결홍정모의 따라하며 배우는 C++
print() defintion을 cpp파일로 옮긴 후 실행했을 때 Link 에러나 발생합니다
강의와 똑같이 진행했다고 생각했는데 어디서 문제가 발생했는지 모르겠네요.. 온라인 컴파일러로 실행시켰을때도 아래와 같은 애러가 뜨네요 ㅠㅠ Storage.cpp:(.text+0x0): multiple definition of `Storage::print()' /tmp/ccGcctjd.o:main.cpp:(.text+0x0): first defined here collect2: error: ld returned 1 exit status 제가 작성한 코드 아래에 주소 남깁니다 ㅠ https://onlinegdb.com/AnTPCcmZC
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
test 가 되질 않아요
메뉴 자체도 선생님이랑 다르고 save() run이라고 표시되질 않아요 C:\Users\user\OneDrive - ( ) ̳ \ ȭ \hello-spring\src\test\java\hello\hellospring\HelloSpringApplicationTests.java:4: error: package org.springframework.boot.test.context does not exist import org.springframework.boot.test.context.SpringBootTest; ^ C:\Users\user\OneDrive - ( ) ̳ \ ȭ \hello-spring\src\test\java\hello\hellospring\HelloSpringApplicationTests.java:6: error: cannot find symbol @SpringBootTest ^ symbol: class SpringBootTest 2 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileTestJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 1s 3 actionable tasks: 1 executed, 2 up-to-date 오류는 이렇게 발생하는데 아무리 검색해봐도 비슷한것도 나오질 않는데 어떻게 해야하나요?
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
test가 작동하지 않아요
Run 하는 부분부터 선생님이랑 뜨는 메뉴도 다르고 save() run 이라고 표시되지도 않아요 오류 창에는 C:\Users\user\OneDrive - ( ) ̳ \ ȭ \hello-spring\src\test\java\hello\hellospring\HelloSpringApplicationTests.java:4: error: package org.springframework.boot.test.context does not exist import org.springframework.boot.test.context.SpringBootTest; ^ C:\Users\user\OneDrive - ( ) ̳ \ ȭ \hello-spring\src\test\java\hello\hellospring\HelloSpringApplicationTests.java:6: error: cannot find symbol @SpringBootTest ^ symbol: class SpringBootTest 2 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileTestJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 1s 3 actionable tasks: 1 executed, 2 up-to-date 이런식으로 뜨는데 오류내용을 아무리 검색해봐도 비슷한것도 나오질 않아요 어떻게 해야하나요?
-
해결됨이미지 관리 풀스택(feat. Node.js, React, MongoDB, AWS)
강의 외적인 질문입니다.
안녕하세요 선생님. 선생님의 강의를 듣고 사이드 프로젝트를 진행하고 있습니다. 그러던 중 API 명세와 관련되서 고민되는 점이 있어 조언을 얻고자 질문을 남깁니다. API 명세를 위한 tool을 찾아보던 중 swagger를 알게되었고 적용을 하려했으나 러닝커브가 있어 망설여지네요. 선생님께서는 API 명세를 작성할 때 어떤 방식으로 진행하시는지 궁금합니다! 감사합니다!
-
미해결스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
프론트 컨트롤러 도입 후 필요한 서블릿 객체의 갯수는 1개가 맞을까요?
프론트 컨트롤러 도입 전에는 3개의 요청(Form, List, Save)으로 서블릿 객체가 3개 생성되서 싱글톤으로 관리됐다면, 프론트 컨트롤러 도입 후에는 FrontController 서블릿 객체 1개로 관리가 되는건가요? 만약 맞다면, 관리하는 서블릿 객체의 갯수가 줄었다는 점이 프론트 컨트롤러의 장점 중 하나라고 생각해도 되나요?
-
미해결Slack 클론 코딩[실시간 채팅 with React]
정규표현식
@[제로초]12](7)인 경우에 왜 최대한 조금 찾는걸까요 ? "제로초]12" 이게 닉네임 아닌가요 ? 이렇게 된다면 제로초]12 가 맞는 게 아닐까요 ? 왜 "제로초"만 찾는지 궁금합니다
-
미해결쉽게 시작하는 쿠버네티스(v1.35)
안녕하세요 질문이 하나 있습니다.
강의에 앞서 소개해주셨던 것처럼 도커와 같은 컨테이너 환경이 딱 어느 정도의 고정으로 할당 받는? 그런 가상머신보다 훨씬 효율적으로 자원들을 효율적으로 사용할 수 있어서 많이 사용된다고 생각하는데 오히려 쿠버네티스 실습때 버추얼박스라는 가상머신을 사용하시는 이유가 있으실까요?
-
미해결타입스크립트 시작하기
/bin/sh: node_modules/.bin/ts-node: No such file or directory 오류
강의를 들으면서 코드 런너 확장도 깔고, 또 따라하는 대로 executorMap 부분의 json파일에 node_modules/.bin/ts-node까지 따옴표 안에 잘 작성을 했지만 계속해서 /bin/sh: node_modules/.bin/ts-node: No such file or directory 라는 오류 문구가 뜹니다. 왜그런걸까요...
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
리스트뷰 에러 질문
안녕하세요 개발자님 강의 매우 잘 들은 학생입니다. 다름이 아니라 강의 후 제가 본 강의랑 기능이 거의 유사한 어플을 만들어보고 있습니다.! 만드는 중에 강의에서 BoardListLVAdapter로 리스트뷰를 생성했던 부분을 제가 동일하게 해보았는데 실행 후 해당 메뉴 탭을 누르면 "Only the original thread that created a view hierarchy can touch its views"라는 에러가 계속발생합니다. 구글검색해보면 main thread를 사용을 안해서 그런다고 하는데 해결방법을 찾아보니 runOnUiThread라는 기능을 사용하라고 나오는데 이건 Activity에경우에만 적용이 되는것 같고 Fragment에는 적용이 안되는 거 같습니다... 혹시 이 경우에 어떻게 해야하는지 도움을 받을 수 있을까요?? <Fragment에서 리스트뷰 생성하는 부분, getproduct함수에서 items리스트에 아이템을 넣어줌.> <리스트뷰 어탭터 부분> <리스트뷰 아이템 xml> <fragment에 해당하는 xml의 ListView>
-
미해결스프링 시큐리티
@Transactional 사용 이유
안녕하세요. 강사님 강의 중에는 없었던 것 같은데.. provider authenticate 메서드에 @Transactional 붙인 이유가 있나요?
-
미해결[구버전] 웹 애플리케이션 개발을 위한 IntelliJ IDEA 설정 (2020 ver.)
IntelliJ Community 버전으로 설치해도 되는지요?
강의 수강 할 때 IntelliJ Community 버전으로 설치해도 문제 없을지 문의드립니다.
-
미해결알고리즘의 개요와 실습 환경 구축
싱크
싱크 안맞음