Error: Deployment to Vercel
# support
c
Hello, I attempted to deploy the foomedical template app to vercel but encountered an error.
Copy code
src/App.test.tsx(12,26): error TS2322: Type 'MockClient' is not assignable to type 'MedplumClient'.
  Types have separate declarations of a private property 'fetch'.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command "yarn run build" exited with 2
BUILD_UTILS_SPAWN_2: Command "yarn run build" exited with 2
I don't know what I'm missing, in local the build process works fine.
r
Ah thanks for flagging this - as we have seen this before and thought that it was fixed. (Original issue here: https://github.com/medplum/medplum/issues/2218) - can I ask you to confirm which version of the Medplum libraries you are using in your attempted deploy?
c
Hello Reshma I'm using version 2.0.22
r
got it - if you upgrade to 2.0.25 - it should work. I just tried it here and it was successful https://github.com/reshmakh/test-build
c
Thanks @reshma it works! 🚀
181 Views