Encountering an issue while attempting to build my Angular 9 Universal project for SSR:
/Users/my-project/dist/server.js:28676
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"])("design:type", HTMLVideoElement)
ReferenceError: HTMLVideoElement is not defined
Utilizing the mat-video player in my project, which seems to be triggering the error. Any suggestions on how to resolve this?
Here's a snippet from my tsconfig.json:
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"baseUrl": "src",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es2015",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
],
"module": "esnext",
"resolveJsonModule": true,
}
}