maoosi / prisma-appsync

⚡ Turns your ◭ Prisma Schema into a fully-featured GraphQL API, tailored for AWS AppSync.
https://prisma-appsync.vercel.app
BSD 2-Clause "Simplified" License
226 stars 18 forks source link

Runtime.HandlerNotFound: index.main is undefined or not exported #33

Closed panzerchris closed 2 years ago

panzerchris commented 2 years ago

I followed the installation guide including steps 5 & 6 outlined here: https://prisma-appsync.vercel.app/guides/installation.html

I'm using Prisma 3.7 and followed their quickstart guide for TypeScript, combined with MySQL for the RDS.

I successfully generated everything and deployed the application with CDK AppSync but receive this error when running queries: Runtime.HandlerNotFound: index.main is undefined or not exported

Any idea what may be lacking?

panzerchris commented 2 years ago

Having dug into this further, I missed the original note in the readme about support for Prisma 2.x. When I downgraded to 2.30.3 this generated and deployed no problem. I'm leaving this as a note for anyone else that encounters the same issue.

maoosi commented 2 years ago

Thanks for reporting! There is some big work underway to support the latest versions of Prisma and improve Prisma-AppSync usage. Should be ready for release in Q1.