vue-bulma / modal

Modal component for Vue Bulma
MIT License
49 stars 28 forks source link

Can't resolve Modal, CardModal and ImageModal #7

Closed dasDaniel closed 7 years ago

dasDaniel commented 7 years ago

I got "Error in ./~/vue-bulma-modal/src/index.js Module not found: Error: Can't resolve './Modal'"

same for CardModal and ImageModal

i added the file extensions, and it works now. I'm not sure why these would be required in my project. I used vue cli to generate project and added components as needed.

import Modal from './Modal.vue'
import BaseModal from './BaseModal.js'
import CardModal from './CardModal.vue'
import ImageModal from './ImageModal.vue'
dasDaniel commented 7 years ago

after some more digging, I did find the issue

the webpack config does need the vue extension added, so the config should include

extensions: ['.js', '.vue', '.css', '.json']