Module not found: Error: Can't resolve 'vue-confirm-dialog'

Viewed 1469

Vue.js + node.js is the basis of my app. I wanted to use the vue-confirm-dialog package from npm but this code line leads to an error:

import VueConfirmDialog from 'vue-confirm-dialog'

I have already executed: npm install --save vue-confirm-dialog and the module vue-confirm-dialog appears in the package.json file.

The error message Module not found: Error: Can't resolve 'vue-confirm-dialog' still appears.

1 Answers

Had the same issue today, solved it by downgrading vue-confirm-dialog to 1.0.2.

npm install vue-confirm-dialog@1.0.2 --save
Related