vuex-pathify: WARNING Module not found: 'vue-class-component'

I am not using Vue Class Components so when I run the build it works but it displays a warning message:

WARNING in ./node_modules/vuex-pathify/dist/vuex-pathify.esm.js
Module not found: Error: Can't resolve 'vue-class-component' in '.../node_modules/vuex-pathify/dist'
@ ./node_modules/vuex-pathify/dist/vuex-pathify.esm.js 1072:20-50

The line in question is:

try {
  createDecorator = require('vue-class-component').createDecorator;
} catch(e) {
  // Decorators are not available, so there is no need for decorators.
  createDecorator = function () { throw new Error("'vue-class-component' is required for decorators. Use 'npm -i vue-class-component'") };
}

Is there any way to use pathify without Vue Class Components and silence the warning message?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 7
  • Comments: 20 (15 by maintainers)

Commits related to this issue

Most upvoted comments

I’ve had a whole load of deadlines for the last few weeks - I’ll try and get to it this week, as I can see it’s quite annoying.