'Error detected while processing function <SNR>17_setup_buffer_leave: line 10: E329: No menu "Vimwiki"

When I load my vimrc with :so %, and switch to another tab or split window the error message will show. Error detected while processing function 17_setup_buffer_leave: line 10: E329: No menu "Vimwiki"

My vim is gvim 8.0.568. vimwiki version is 2.5.

Does anyone knows how to fix this bug? Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source