카트 페이지를 구현하기 위해 카트 아이템의 Quantity 정보를 합쳐주기 위해서 따로 서버에서 가져온 response 데이터를 user action 에서 처리하는 건가요? 그냥 cartpage 컴포넌트에서 처리해도 가능한가요? 다른 redux들은 서버에서 받아온 response 데이터를 각자 컴포넌트에서 처리하는 것 같아서요.
Could not fetch URL https://pypi.org/simple/pygame/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pygame/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)'))) - skipping ERROR: Could not find a version that satisfies the requirement pygame (from versions: none)
이번에 next + antd 로 진행하다가 antd customize theme를 써보고싶어져서 https://ant.design/docs/react/customize-theme#Customize-in-webpack 여기에 나와있는대로 웹팩 설정을 const withBundleAnalyzer = require ( ' @next/bundle-analyzer ' )({ enabled : process . env . ANALYZE === ' true ' , }) ; module . exports = withBundleAnalyzer ({ compress : true , webpack ( config , { webpack } ) { const prod = process . env . NODE_ENV === ' production ' ; config . module . rules . push ({ test : / \. less $ / , use : [ { loader : ' style-loader ' , } , { loader : ' css-loader ' , // translates CSS into CommonJS } , { loader : ' less-loader ' , // compiles Less to CSS options : { lessOptions : { // If you are using less-loader@5 please spread the lessOptions to options directly modifyVars : { ' primary-color ' : ' #1DA57A ' , ' link-color ' : ' #1DA57A ' , ' border-radius-base ' : ' 2px ' , } , javascriptEnabled : true , } , } , } , ] , }) ; return { ... config , mode : prod ? ' production ' : ' development ' , devtool : prod ? ' hidden-source-map ' : ' eval ' , plugins : [ ... config . plugins , new webpack . ContextReplacementPlugin ( / moment [/ \\ ] locale $ / , / ^ \.\/ ko $ / )] , } ; } , }) ; 이렇게 기존에서 less 설정만 추가했습니다. 그런데 > next -p 3080 Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db ready - started server on http://localhost:3080 Warning: Reverting webpack devtool to 'inline-source-map'. Changing the webpack devtool in development mode will cause severe performance regressions. Read more: https://err.sh/next.js/improper-devtool Warning: Built-in CSS support is being disabled due to custom CSS configuration being detected. See here for more info: https://err.sh/next.js/built-in-css-disabled info - Using external babel configuration from E:\programming\nodejs\utopia\client\.babelrc error - ./node_modules/antd/dist/antd.css 13:6 Module parse failed: Unexpected token (13:6) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | /* stylelint-disable */ | /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ > [class^=ant-]::-ms-clear, | [class*= ant-]::-ms-clear, | [class^=ant-] input::-ms-clear, 이런 오류가 뜹니다. custom css configuration 을 해서 built in css support가 중단되었다고하는거 같은데, 해당 링크에 들어가보면 외부 css 관련 플러그인을 사용했을때 뜰 수 있다라고 하는데 그 상황은 아닌거같고요. 혹시 어떻게 해야 웹팩 오류가 안나게 설정을 할 수 있을까요?
안녕하세요? 시맨틱 구조 관련해서 질문있습니다 :) 디자이너가 디자인한 페이지 기준으로 마크업을 하게 될 때, 시맨틱 구조 잡기에 유용한 태그이지만, 화면에 보일 필요가 없는 태그(예 : h 태그 등)에 대해서는 일단 추가하고 안보이게 하나요? 아니면 아예 디자인된 페이지에 없으니까 추가 자체를 하지 않나용?ㅎㅎ
로그인을 시도 하면, InsecureBankv2 앱 에서는 Invalid Credential 이라고 출력되며 로그인이 되지않고. 서버 명령창 에서는 아래와 같이 __init__.py 파일 에서 문제가 있다고 하며 [Errno 28] No space left on device 에러 가 있다고 나와요. 오류가 발생하였다는 __init__.py 파일 의 소스 코드 내용입니다. line 879 로그인 시도 후, Fiddler 출력 내용 입니다. 또한, 앞서서는 파이썬 암복호화 모듈 설치 를 위해 C:\Users\제 아이디\anaconda3\envs\py2\Scripts 경로에 easy_install http://www.voidspace.org.uk/python/pycrypto-2.6.1/ pycrypto-2.6.1.win-amd64-py2.7.exe 명령으로 설치해주었었습니다. (환경이 64비트 환경이기에 pycrypto-2.6.1.win32-py2.7.exe 로 설치하면 문제가 발생하기에 pycrypto-2.6.1.win-amd64-py2.7.exe 로 설치하였습니다.) 구글에 해당 오류 내용과 관련된 해결 방안을 찾아보고 적용해보아도 해결되지 않아 질문을 드립니다.ㅜㅜ
선생님 안녕하세요. 강의를 듣다가 궁금한 점이 생겨 질문드립니다. orderRepository는 트랜잭션이 없고, 트랜잭션이 없으면 조회 후에 영속성 컨텍스트가 사라진다고 알고있었습니다. @GetMapping ( "/api/test/simple-orders" ) public void orderTest (){ Order order = orderRepository .findOne( 4L ) ; System. out .println(order.getMember()) ; // 지연로딩 . 프록시객체 이므로 실제 db 에서 조회 => 조회 쿼리 나감 System. out .println( "------------------------------" ) ; System. out .println(order.getMember()) ; // 영속성컨텍스트 1 차캐시에서 조회 } select member0_.member_id as member_i1_4_0_ , member0_.city as city2_4_0_ , member0_.street as street3_4_0_ , member0_.zipcode as zipcode4_4_0_ , member0_.name as name5_4_0_ from member member0_ where member0_.member_id=? jpabook.jpashop.domain.Member@ 6 c10324f ------------------------------ jpabook.jpashop.domain.Member@ 6 c10324f 근데 위에 코드에서 첫번째 getMember()는 db에서 조회되었고 두번째 결과는 1차캐시에서 조회되었는데, 이렇게 되려면 orderRepository.findOne()이후에도 영속성컨텍스트가 사라지지 않고 유지되고 있어야되는것 아닌지 궁금합니다. 추가로 orderRepository.findOne()에 @Transactional을 붙였을때도 같은 결과가 나오는데 함수 호출이 끝난 시점에는 트랜젝션이 끝나 영속성 컨텍스트도 사라진다고 알고 있어서 혼란스럽습니다. 제가 놓치고 있는게 뭔지 궁금합니다. 감사합니다!!
그전까진 잘됬는데 next url 사용한뒤 글 작성을 누르면 GET /login?next_url=http%3A%2F%2Flocalhost%3A5000%2Fwrite HTTP/1.1" 302 - GET /login?next_url=http%3A%2F%2Flocalhost%3A5000%2Flogin%3Fnext_url%3Dhttp%253A%252F%252Flocalhost%253A5000%252Fwrite HTTP/1.1" 302 - 이런식으로 next url 리디렉션 무한루프에 빠집니다 해결좀 부탁드립니다 , 코드는 아무리봐도 강좌랑 크게 차이가 없어 보이는듯한데
제가 예전에 리덕스를 공부할 때 리덕스의 로직순서를 배웠었는데요 이러한 흐름으로 실행이 된다고 배웠습니다 그런데 노드버드 프로젝트에는 컴포넌트의 AppLayout에서 LoginForm 컨테이너를 가져와서 실행하는데, 컨테이너에서 props로 전달하거나, 이 반대로 전달하는 거는프로젝트를 만드는 사람에 따라 다 다른건가요?
Access to XMLHttpRequest at 'https://api.hnpwa.com/v0/jobs/1.json' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. actions.js?63e0:40 err >>>>> Error: Network Error at createError (createError.js?2d83:16) at XMLHttpRequest.handleError (xhr.js?b50d:84) 해당 오류는 위와같습니다 .. ㅠ jobs페이지 DATA받고싶어요 ㅠㅠ
[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part9: MMO 컨텐츠 구현 (DB연동 + 대형 구조 + 라이브 준비)
안녕하세요. 궁금한게 있어서 질문드려봅니다 영상의 2분쯤에 DBTransaction 처리시에 여러개의 스레드로 분할할경우 순차적 문제가 있다고 말씀하셨는데요. 그럼 여러개의 스레드로 처리시에 순차적 문제가 있을때 어떻게 순서보장을 하나요? 고민해본다면 목적과 종류별로 스레드를 나눠서 처리하는 방법이외에는 딱히 생각이 나지 않아서 궁금해서 질문드려봅니다
진행하다가 nodemon client.js 입력시 command not found: nodemon 이 떠서 남겨둡니다. 해결 방법은 npm install -g nodemon 로 하였으며, 만약 mac유저의 경우 npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules 라고 뜨면서 설치가 안될 수 있는데 sudo npm install -g nodemon 치시고 password 뜨면 mac로그인 비번 입력하시면 되네요. 혹 저랑 비슷하신분이 앞으로 계실까 하여 남겨두었습니다.