WaspW
Waspβ€’12mo ago
Samir Alibabic

[Error] TypeError: Module name, '.prisma/client/index-browser' does not resolve to a valid URL.

I ran into an issue after deploying to fly.io which I believe is related to Enums:
[Error] TypeError: Module name, '.prisma/client/index-browser' does not resolve to a valid URL.

I used something like
import { PostStatus, MediaType } from '@prisma/client';
to have types on the client.

Works locally though. Any help would be appreciated. What does fly do differently than when running locally?
Was this page helpful?