wagtail-autocomplete icon indicating copy to clipboard operation
wagtail-autocomplete copied to clipboard

RemovedInWagtail70Warning: The usage of `WidgetWithScript` hook is deprecated. Use external scripts instead.

Open njourdane opened this issue 10 months ago • 1 comments

I receive this warning when I run pytest on my project:

RemovedInWagtail70Warning: The usage of `WidgetWithScript` hook is deprecated. Use external scripts instead.

It comes from here in wagtail core and it is used here in wagtail-autocomplete.

njourdane avatar Mar 29 '24 14:03 njourdane

compilation.chunks.forEach(chunk => { compilation.chunkGraph.getChunkModules(chunk).forEach(module => { const exportInfo = compilation.chunkGraph.moduleGraph.getExportInfo(module); //Stmt; });

Using the chunk graph method would fix error.

muvalika avatar Mar 29 '24 15:03 muvalika