Error

TypeError: Cannot read properties of null (reading ‘insertBefore‘)

Solution

You are reading some variable which is null. Just try to locate the possible variable. Change all v-if to v-show, or change all v-if and v-else to v-show.