HTML-loader strict checking
grtjn opened this issue · comments
Newer versions of html-loader (as used in grove-vue-ui for instance) are more strict, and throw errors like these with v0.0.4 of this component:
> @marklogic-community/grove-vue-ui@1.1.0 build /Users/gjosten/Projects/grove-vue-ui
> vue-cli-service build
⠹ Building for production...
ERROR Failed to compile with 1 errors 8:50:40 AM
Error: Child compilation failed:
Module Error (from ./node_modules/html-loader/dist/cjs.js):
HtmlSourceError: Bad value for attribute "data" on element "object": Must be non-empty (From line 73, column 7; to line 73, column 63):
HtmlSourceError: HtmlSourceError: Bad value for attribute "data" on element "object": Must be non-empty (From line 73, column 7; to line 73, column 63)
Module Error (from ./node_modules/html-loader/dist/cjs.js):
HtmlSourceError: Bad value for attribute "src" on element "audio": Must be non-empty (From line 65, column 7; to line 65, column 80):
HtmlSourceError: HtmlSourceError: Bad value for attribute "src" on element "audio": Must be non-empty (From line 65, column 7; to line 65, column 80)
Module Error (from ./node_modules/html-loader/dist/cjs.js):
HtmlSourceError: Bad value for attribute "src" on element "img": Must be non-empty (From line 71, column 9; to line 71, column 27):
HtmlSourceError: HtmlSourceError: Bad value for attribute "src" on element "img": Must be non-empty (From line 71, column 9; to line 71, column 27)
Module Error (from ./node_modules/html-loader/dist/cjs.js):
HtmlSourceError: Bad value for attribute "src" on element "video": Must be non-empty (From line 68, column 7; to line 68, column 92):
HtmlSourceError: HtmlSourceError: Bad value for attribute "src" on element "video": Must be non-empty (From line 68, column 7; to line 68, column 92)
Drop mentioned attributes to get rid of these errors.