You need to enable skinning, if you wrote your shader from scratch you might didn’t added the necessary includes. To stay compatible with THREE it is easier to extend a standard material with your shader material.
You can do this manually or with a helper like this Function to extend standard Materials