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.
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.
- Have you checked it's present in your node_modules ? – Peterrabbit Commented Mar 29, 2022 at 8:53
- Yes there is a vue-confirm-dialog folder in node_modules – MichaB Commented Mar 29, 2022 at 8:56
- Had a similar issue once, try restarting the server. – No Name Commented Mar 29, 2022 at 9:03
- 1 @MichaB Can you please cross check the version you have and the version on which this supports. – Rohìt Jíndal Commented Mar 29, 2022 at 9:37
- 1 @RohìtJíndal package.json: ^1.1.0 and package-lock.json: 1.1.0. It is the latest version. – MichaB Commented Mar 29, 2022 at 10:54
1 Answer
Reset to default 18Had the same issue today, solved it by downgrading vue-confirm-dialog to 1.0.2.
npm install [email protected] --save