0๐
โ
I just bumped into the same problem and, after hours of Googling, I finally found the solution in a corner of Vue documentations.
Basically, you need to add an extra appendTsSuffixTo
option to your webpack configuration.
module.exports = {
...
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
options: {
appendTsSuffixTo: [/\.vue$/],
},
exclude: /node_modules/,
},
{
test: /\.vue$/,
loader: 'vue-loader',
}
Source:stackexchange.com