Closed gustavobica closed 4 years ago
I'm unable to reproduce this. Would it be possible for you to share the project in question so I could have a look?
I invited you to the repository, thank you :) It may be something dumb I did, I using this project to get used to gatsby and sanity.
Thank you for reporting this, it seems we were a bit too eager on pushing an update for the image-url module which was supposed to work in both CommonJS and ESM environments.
I've released a new version of the module (and the modules that closely depend on it), as well as pushed an update to your repo which upgrades the dependencies.
No problem, thank you for the quick you for the quick response and fix.
Hi!
I'm building a website with gatsby and sanity.io, on gatsby develop everything works fine, but during building I keep getting this error:
**WebpackError: TypeError: urlBuilder is not a function
getImageUrl.js:51 buildUrl node_modules/@sanity/block-content-to-hyperscript/lib/getImageUrl.js:51:1
serializers.js:110 ImageSerializer node_modules/@sanity/block-content-to-hyperscript/lib/serializers.js:110:1**
Does anyone know why ?
My getImageUrl.js looks like this:
And my gatsby-nide.js like this: