You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wasp/core/serialization is calling @prisma/client as part of its logic. When the Prisma schema doesn't have any models, @prisma/client is an empty placeholder in the CJS format instead of ESM, which trips up Vite.
OTOH, it seems like this workaround is not needed anymore:
Please provide access to the Notion doc. In my case, it’s working fine. If you are using WSL to run the app and trying to render it on Windows, it might not work. You have to run Firefox installed in your WSL and open localhost:xxxx there. You can start it on firefox using -> firefox localhost:xxxx (command in wsl)
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
wasp/core/serialization
is calling@prisma/client
as part of its logic. When the Prisma schema doesn't have any models,@prisma/client
is an empty placeholder in the CJS format instead of ESM, which trips up Vite.OTOH, it seems like this workaround is not needed anymore:
wasp/waspc/data/Generator/templates/react-app/vite.config.ts
Lines 44 to 54 in 014f661
To Reproduce
wasp new
wasp start
Expected behavior
The template page shows up
Screenshots
Possible solutions
@prisma/client
fromwasp/core/serialization
if there aren't any Prisma modelstry..catch
The text was updated successfully, but these errors were encountered: