I’d like to add another reason why this error might pop up:
I did the following:
import mapActions from 'vuex'
instead of:
import { mapActions } from 'vuex'
The former was importing the entire vuex export, which is an object. Adding object destructuring fixed the problem.