christopherafbjur / sanity-plugin-icon-picker

MIT License
30 stars 27 forks source link

Error on production and built but not on development #58

Closed julimancan closed 1 year ago

julimancan commented 1 year ago

Hi I keep getting this error: Uncaught (in promise) ReferenceError: create$5 is not defined, I used the plugin for the simplest icon picker in an array. Installed the plugin and set it up in the plugins section of the sanity config object. And everything works on development mode but not after building. I have a nextjs site with the studio embedded into it, Maybe that has something to do with it.

liamb13 commented 1 year ago

Hi @julimancan, this is mentioned in the https://github.com/christopherafbjur/sanity-plugin-icon-picker#faq.

To fix, update your next.config and add: swcMinify: false