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

Plugins not registered on client side

Open nagiek opened this issue 3 years ago • 0 comments

Hi,

It doesn’t look like plug-ins are being registered on the client side. When attempting to use a pipelineFunction, I get an error that the plugin is not registered.

I think we need to add a step in gatsby-browser.js. Something like

languages.forEach(({plugins}) => plugins?.forEach(p => p(lunr)))

What do you think? Or am I missing something?

nagiek avatar Dec 23 '21 18:12 nagiek