Help for Uncaught TypeError: Failed to resolve module specifier ".prisma/client/index-browser".
Hi All,
I am from deployment team and our developer is using prisma orm in a project. Previous version of the project was using prisma version 4 and the developer upgrade it to version 5 in his last commit, now the application is facing this issue, Uncaught TypeError: Failed to resolve module specifier ".prisma/client/index-browser". Relative references must start with either "/", "./", or "../". The application is being built and deployed as a docker container. Currently the workaround has been done by making prisma version as 5 and @prisma/client version as 4.16.2. But we need to make it work for prisma 5.17 and @prisma/client 5.17.0. We are using RedwoodJs framework and node version 18.14. Can anyone please advise what steps needed to be followed so i can guide developer team to do the same. Thanks in advance.
1 Reply
There is a Github issue on this: https://github.com/prisma/prisma/issues/12504 with a few workarounds posted. But essentially, you can't use Prisma enum's for some reason in your client-side code.
GitHub
`Uncaught TypeError: Error resolving module specifier “.prisma/clie...
Bug description I have the following error message in my browser upon using sveltekit and the command "npm run preview": Uncaught TypeError: Error resolving module specifier “.prisma/clie...