vuejs TypeError: Cannot read properties of undefined (reading _wrapper) This problem can happen when you use an event handler in Twig, but forget to add- or place your function in the wrong location in your index.js.