본문 바로가기
반응형

개발 지식 B+/에러 해결 모음11

Module build failed (from ./node_modules/@storybook/builder-webpack5/node_modules/babel-loader/lib/index.js): in storybook 참고한 블로그 storybook 에 종속된 babel-loader 버전으로 깔아주었다. 2023. 9. 29.
Storybook Typescript 설정 typescript 문법 자체를 storybook 에서 못읽는 것 같아서, .baqbelrc 에 아래 속성 추가함 { "presets": ["@emotion/babel-preset-css-prop", "@babel/preset-typescript"], "plugins": [ [ "@emotion", { "autoLabel": "dev-only", "labelFormat": "[local]", "cssPropOptimization": true } ] ] } 2023. 9. 28.
Storybook dynamic title <Meta /> storybook meta 타이틀을 함수로 생성하게끔 하려했다. 하지만, 직접 constant 로 입력해야 했다. Not Work const meta: Meta = { title: generateMetaTitle({ d1: 'Component', d2: 'Button', d3: 'SingleButton' }), component: SingleButton, tags: ['autodocs'], }; Work const meta: Meta = { title: 'Component/Button/SingleButton', component: SingleButton, tags: ['autodocs'], }; 2023. 9. 28.
[antd] SyntaxError: Cannot use import statement outside a module auto import 되어서 컴포넌트를 사용했는데, 다음 에러를 직면했다. 유사 코드를 참고해보니 import 경로가 잘못되었더라. 참고 자료) https://github.com/ant-design/ant-design/issues/40113 응용) root 가 아닌 원치 않은 경로로 module 접근 시 에러가 나도록 의도할 수 있을 듯? 2023. 9. 28.
nuxt project에서 import nuxt project에서 import 계속 안되길래 전전긍긍했다. // Getting warnings for `export 'default' (imported as 'mod') was not found` // package.json 에서 확인한 버전 "echarts": "^5.0.2", "vue-echarts": "^6.0.0-alpha.5" 그래서 nuxt.config 파일을 고쳐보았는데 그래도 안되고... 무슨 일이지 싶었다. 헌데 import 방식을 아래처럼 하니깐 되었다 ㅜㅜ 2021. 3. 30.
Error: listen EADDRINUSE: address already in use :::port 1차 방법 2차 방법 $ sudo netstat -pna | grep 5000 아니 rambox 앱 port 가 docker backend랑 곂쳐서 snap configure 설정으로 바꿔보려고하는데 안되네... 결국 system monitor에서 직접 꺼버림 ㅜㅜ 2021. 2. 19.
workbench 깔았는데 비정상적으로 안 열리면? stackoverflow.com/questions/52111129/mysql-workbench-not-opening-on-ubuntu 2021. 1. 26.
Error: write EPROTO Client 측에서 axios GET 요청을 했는데 에러가 발생하더라.. await axios.post('https://localhost:8080/callback',{ authorizationCode: authorizationCode }) 해결방법 localhost에서는 https 요청을 할 수 없다고 한다. await axios.post('http://localhost:8080/callback',{ authorizationCode: authorizationCode }) 2021. 1. 22.
What is "Bearer" in JWT (Json Web Token) stackoverflow.com/questions/39992774/verify-a-jwt-token-string-containing-bearer-with-nodejs 1. What is "Bearer" ? The value Bearer in the HTTP Authorization header indicates the authentication scheme, just like Basic and Digest. It's defined in the RFC 6750. 2. How to solve it for verify JWT 그러해서 authHeaderValue에 붙은 scheme 을 떼고 Token 만 얻기 2021. 1. 21.
반응형