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β)
0π
The issue here is on the webpack loaders. It tries to look from libraries if the path is not preceded with β./β or β../β.
Source:stackexchange.com