0π
I figured why. In vue.js even if 2 files are in the same directory ./ is necessary. Now, it worked.
contentmodal: require(β./modalcontent.vueβ)
- [Vuejs]-How to use the same javascript file in a Vue file and a HTML file?
- [Vuejs]-Why does Jest throw an error on dynamic import() when calculating coverage for a Vue.js app?
0π
The issue here is on the webpack loaders. It tries to look from libraries if the path is not preceded with β./β or β../β.
- [Vuejs]-Vue.js form file input Error in event handler
- [Vuejs]-AJAX Search with Laravel and Vue empty Results
Source:stackexchange.com