Open MichaelGorski opened 1 year ago
FYI, this is a warning, not an error. we have not yet updated the main example, but https://github.com/algolia/autocomplete/issues/950#issuecomment-1110688407 gives a user land solution
I was getting an actual error in next13 TypeError: Cannot add property __, object is not extensible
and for anyone who is also getting this from trying to use custom templates that return jsx, the solution that worked for me was following the codebox example from https://github.com/algolia/autocomplete/issues/950#issuecomment-1110688407 (same as mentioned above) specifically the
renderer: {
createElement: React.createElement,
Fragment: React.Fragment,
},
render({ children }, root) {
if (!panelRoot.current) {
panelRoot.current = createRoot(root);
}
panelRoot.current!.render(children);
},
config options part is what resolved it for me.
Description
Using autocomplete in NextJs 13 with the newest react 18 version is causing errors
Reproduction
// using the default example from the api
Steps install latest next js 18 with src structure, not with app structure add autocomplete plugins
Expected behavior
shouldn't throw any errors only happens with autocomplete implemented
Environment