gatsby-plugin-intl icon indicating copy to clipboard operation
gatsby-plugin-intl copied to clipboard

How do I use this together with slices?

Open emilkarl opened this issue 1 year ago • 1 comments

Trying to make this work when having header and footer as slices with a set locale in the slice context. Works ok in dev mode but can’t build due to this error:

image

My guess is I can’t use useIntl() hook in the slice and need to do something else. Not sure what tho? Anybody have a good solution to the problem?

emilkarl avatar May 25 '23 12:05 emilkarl

Hi did you find a solution to this? I'm having the same issue

j-mcgregor avatar Jul 25 '23 13:07 j-mcgregor