error when starting dev server: TypeError: Cannot read properties of undefined (reading 'endsWith') at configHtmlPlugin