Errors while serving table in angular

Tags: #<Tag:0x00007f8b1d38ebe0>

It’s working fine while debugging the angular application with ng serve, but testing it in a local express server throws the following errors:

I found that the issue is while building the Angular application using the ng build --prod command, if I don’t use that command and build the application with the regular ng build command, the errors doesn’t appear and the table loads fine.
Using:
Angular 11
@handsontable/angular ^11.1.0 and handsontable ^11.1.0
Typescript config:
{
“buildOnSave”: false,
“compileOnSave”: false,
“compilerOptions”: {
“allowSyntheticDefaultImports”: true,
“incremental”: true,
“skipLibCheck”: true,
“baseUrl”: “./”,
“downlevelIteration”: true,
“outDir”: “./dist/out-tsc”,
“sourceMap”: true,
“removeComments”: true,
“declaration”: false,
“module”: “es2020”,
“moduleResolution”: “node”,
“emitDecoratorMetadata”: true,
“experimentalDecorators”: true,
“target”: “es2015”,
“types”: [
“jquery”,
“node”,
“long”
],
“typeRoots”: [
“…/…/node_modules/@types
],
“lib”: [
“es2015”,
“dom”
],
“angularCompilerOptions”: {},
“exclude”: [
“node_modules”,
“build”,
“dist”,
mocks”,
“coverage”,
.config.js",
"
.babel.js”,
“specs”
]
}

Thank you in advance

Hi @jvargas

That’s a known issue. For now you can try one thing, to downgrade the Handsontable version to 8.2.0 and see if that solves the problem. You can read more about the issue here:

Hi @jvargas

we just updated the topic at https://github.com/handsontable/handsontable/issues/7577
Please leave your comment or send me a message at support@handosntable.com if you have any additional questions.