### Version 15.2.6 ### Reproduction link [https://github.com/eltonchan/test_vue_loader](https://github.com/eltonchan/test_vue_loader) ### Steps to reproduce 1、use vue cli3 create application (vue cli3 default use 15 version for vue-loader) 2、add html-loader to webpapck Configuration ``` chainWebpack: (config) => { config.module .rule('html') .test(/\.html$/) .use('html-loader') .loader('html-loader') .end(); }, ``` 3、.vue file template add lang="html" attribute ``` <template lang="html"> ``` 4、npm run serve ### What is expected? compiling success ### What is actually happening? <b>error in ./src/App.vue?vue&type=template&id=7ba5bd90&lang=html& Module Error (from ./node_modules/vue-loader/lib/loaders/templateLoader.js): (Emitted value instead of an instance of Error) Error compiling template:</b> --- By the way, in 14 version No such problem。 <!-- generated by vue-issues. DO NOT REMOVE -->