13th-4team's People
13th-4team's Issues
yarn berry 프리즈마 에러 사항 정리
yarn berry 프리즈마 에러 사항
- PrismaClient를 못 불러오는 에러 발생
원인
- 프리즈마는 node_modules에 .prisma로 prismaClient를 관리하는 데 yarn berry는 .yarn에 zip 파일로 관리하고 있어 prismaClient를 불러오지 못함
- contributor 리뷰 yarn berry 지원보다 쿼리에 더 집중하고 싶다고 함.
- 2020년에 작성한 거라 조금 오래 됐는데 더 찾아보겠습니다 😢
해결방안
prisma를 라이브러리로 생성하여 관리하기
generated를 생성하여 라이브러리로 관리합니다.CLIyarn run db:generated
를 실행하면 아래와 같이 prisma 폴더가 생성됩니다.아래 폴더에서 prismaClient를 가져와서 활용하게 됩니다!
-
의존성 주입 문제
-
generated로 생성된 파일의 의존성 주입이 안 되어 활용하는 방법을 못찾음.
- prisma만 따로 node_modules로 생성하여 관리하기
- Nestjs + yarn berry + prisma
-
해당 github README에
Yarn (berry) version 3.1.0 (PnP disabled since it's not supported by NestJs and Prisma yet)
문구가 있습니다 -
혹시 prisma가 지원되지 않는 걸까요 ㅠㅠㅠ
- 회의 전까지 더 찾아보고 시도해 보겠습니다
- 혹시 현 모노레포에서 prisma가 되는 방법을 아신다면 조언 부탁드립니다 ( _ _)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.