Skip to content

WIP: Fix how we get the intl provider.#31

Draft
mauritsvanrees wants to merge 2 commits intokitconcept:mainfrom
mauritsvanrees:maurits-fix-intl
Draft

WIP: Fix how we get the intl provider.#31
mauritsvanrees wants to merge 2 commits intokitconcept:mainfrom
mauritsvanrees:maurits-fix-intl

Conversation

@mauritsvanrees
Copy link
Contributor

In production mode only (and possibly depending on Volto and VLT version and which addons you have), I get this error when trying to a add a separator or button block:

[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.

So the strange thing is that I can add a quote block and most other blocks but two blocks not. And when I remove the quote block from the addons, all is well.

Partially I may have caused this myself last year by this PR: #28 That fixed #27 for me. But it may have not been the best way.

So we try again. But even with the changes I did so far, it does not work for me. :-(

Does someone know how to properly fix this?

I have Volto 18.29.1 and Volto Light Theme 5.0.2.

This is the same site and the same problem for which @fredvd and me created these issues:

This site with Volto 18.23.0 works, but with later versions not.

mauritsvanrees and others added 2 commits November 6, 2025 14:17
In production mode only (and possibly depending on Volto and VLT version and which addons you have), I get this error when trying to a add a separator or button block:

```
[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.
```

So the strange thing is that I can add a quote block and most other blocks but two blocks not.
And when I remove the quote block from the addons, all is well.

Partially I may have caused this myself last year by this PR:
kitconcept#28
That fixed kitconcept#27 for me.
But it may have not been the best way.

So we try again.  But even with the changes I did so far, it does not work for me.
@mauritsvanrees
Copy link
Contributor Author

My fixes are probably more or less good. And I have included the fix from @sneridagh to remove the peer dependency on @plone/volto. But what really fixes it for me, is taking over the main change from this cookieplone-templates PR in my project: copy the pnpm-lock.yaml file.

@davisagli davisagli requested a review from sneridagh November 10, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uncaught TypeError: intl is undefined

2 participants