일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 모던 자바스크립트 Deep Dive
- engines locking
- leetcode
- next-auth
- Medium
- Biweekly Contest 79
- React.memo
- Vite
- React Private Routes
- tailwindcss
- 프로그래머스
- javascript
- next.js
- Weekly Contest
- 호이스팅
- 컴포넌트 최적화
- eslintrc
- LV. 2
- 모던 자바스크립티 Deep Dive
- sql
- medinum
- React Router dom v6
- .env
- toast-ui-editor
- commitlint
- BFS
- React
- React Public Routes
- react-dom
- Sanity.io
- Today
- Total
목록Next.js (4)
뚜벅
이번 개인 프로젝트에서 prisma + mongoDB 를 사용하게 돼서 사용하는 방법에 관해 글을 작성합니다. 1. MongoDB Atlas Database 생성 1. 사이트 접속 후 로그인 MongoDB Atlas Database | Multi-Cloud Database Service The multi-cloud database service at the heart of our developer data platform that accelerates and simplifies how you build with data. Try MongoDB Atlas today! www.mongodb.com 2. Project 생성 project 이름과 추가할 멤버를 설정한 뒤 project를 생성합니다. 3. Dat..
Engine Locking 1. '.nvmrc' 파일 생성 이 파일은 특정 프로젝트에서 사용해야 할 Node.js 버전을 지정하는 데 사용합니다. lts/gallium 본인이 필요한 Node.js 버전을 찾아서 입력해주면 됩니다. GitHub - nodejs/Release: Node.js Release Working Group Node.js Release Working Group. Contribute to nodejs/Release development by creating an account on GitHub. github.com 2. '.npmrc' 파일 생성 package.json의 engines 필드를 엄격하게 검사하도록 작성합니다. 이렇게 하면 package.json에서 engines 필드에 작..
Next.js + Tailwindcss 환경에서 sanity init 후 sanity studio를 실행했을 때 발생한 에러입니다. 에러 해결 방법은 sanity 실행 폴더에 tailwind.config.js가 있으면 됩니다. 1. 생성한 sanity 폴더 안에 tailwind.config.js 파일을 추가한다. /** @type {import('tailwindcss').Config} */ module.exports = { content: [ './pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}', './app/**/*.{js,ts,jsx,tsx}', ], theme: { extend: {}, }, plugins: [], } Sanity...
Next.js + Sanity 프로젝트 진행 중 스키마 파일에서 아래 에러가 발생했습니다! Parsing Error: Cannot find module '@babel/preset-env' for Sanity 처음에는 @bebel/preset-env 파일이 설치가 안되어서 에러가 발생하는 줄 알고 설치하였지만 에러는 그대로였습니다..! 그래서 구글 검색 중 해결법을 찾아 게시물을 작성합니다. 해결법은 간단했는데요 sanity 폴더 아래 .eslintrc 파일에 한 줄만 추가해주면 됩니다. { "extends": "@sanity/eslint-config-studio", "eslint.workingDirectories": ["./web", "./studio"] // 추가 } Parsing Error: Cann..