metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.32k stars 6.26k forks source link

Module '"mime"' has no exported member 'getType' #1562

Closed cormacncheese closed 2 years ago

cormacncheese commented 2 years ago

Pull latest commit and get the following type error with mime package:

Module '"mime"' has no exported member 'getType' Module '"mime"' has no exported member 'getExtension'

davidmitesh commented 2 years ago

I followed this : https://docs.metaplex.com/candy-machine-v2/getting-started and got the error.

If you are on the same page then, navigate to the js folder under metaplex directory. And run " yarn add @types/mime --ignore-workspace-root-check " . See, if that works.

cormacncheese commented 2 years ago

Yep, worked like charm!