小智 9
您正在尝试在前端使用 Prisma,这是不可能的。要么在 next js api 路由中使用它:https://nextjs.org/docs/api-routes/introduction,要么在 getServerSideProps 或 getStaticProps 中使用它:https: //nextjs.org/docs/basic-features/data-fetching# getserversideprops-服务器端渲染
来源: https: //github.com/prisma/prisma/issues/6219
| 归档时间: |
|
| 查看次数: |
13081 次 |
| 最近记录: |