Cannot find module "./components/SweetModal"
davodaslanifakor opened this issue · 5 comments
davodaslanifakor commented
jamesgraham10 commented
I had to do this
import SweetModal from 'sweet-modal-vue/src/components/SweetModal.vue'
If you want the SweetModalTab
import SweetModalTab from 'sweet-modal-vue/src/components/SweetModalTab.vue'
davodaslanifakor commented
davodaslanifakor commented
and remember i use less inside my project ....
sharik709 commented
try this
import SweetModal from 'sweet-modal-vue/src/plugin';
maksimenka commented
Path for import is
import SweetModal from 'sweet-modal-vue/src/plugin.js'
add this into webpack.config if you use plugin globally.
resolve: {
alias: {'vue$': 'vue/dist/vue.esm.js'},
extensions: ['.js', '.vue'], // this string resolve your problem
}