Skip to main content
Skip to main content
You're viewing the documentation for v1, which isn't the latest Medusa version.Latest documentation

Mime Error

The following error can occur when running the build command either locally or in an deployed Medusa backend:

Cannot find type definition file for 'mime'

This error typically occurs when using yarn v1 in an older Medusa setup.

To resolve the error, install v1.3.5 of @types/mime as a development dependency in your Medusa backend:

npm install @types/mime@1.3.5 --save-dev
Was this section helpful?