Difference in version for HandsonTable and HandsonTable-pro

Hi Team,

We are using handsontable-pro.
I have a confusion that when I run the following command:

npm install handsontable-pro @handsontable-pro/angular

HandsonTable versin are: “@handsontable-pro/angular”: “^3.0.1” and “handsontable-pro”: “^6.2.3”

But if I run > npm install @handsontable/angular handsontable

HandsonTable version are: “@handsontable/angular”: “^4.0.0” and “handsontable”: “^7.0.2”.

We are using handsontable-pro, so does it mean we are at an older version of handsontable.

Welcome @02paru

since 7.0.0 there is only one product - Handsontable (we are handsontable on the npm as well).

Hi @aleksandra_budnik.
Correct me if I am wrong.
Now I have to install handsontable. There is no such thing as handsontable-pro.
We have to make changes in my angular project like instead of importing from handsontable-pro to Handsontable.
eg: Earlier we used to write
import { HotTableModule, HotTableRegisterer } from ‘@handsontable-pro/angular’;

We have to make all those changes also now?

Hi @aleksandra_budnik:

I have updated to handsontable 7.0.0 but it is giving me compilation errors int he following:

const hotTable = this._hotRegisterer.getInstance(instanceId);
if (hotTable) {
const settings = hotTable.getSettings();
settings.colHeaders.length = 0;
}

for settings.colHeaders.length = 0;
Property ‘length’ does not exist on type ‘true | string[] | ((index: number) => string)’.
Property ‘length’ does not exist on type ‘true’.

Although I have an array of string for colHeaders.

Yes, exactly. If you’d like to read more about this change here is an article https://handsontable.com/blog/articles/2019/3/handsontable-drops-open-source-for-a-non-commercial-license

Here Angular (forked) - StackBlitz is an example of an angular (wrapper) + Handsontable 7.0.0 project. Please check if your configuration follows this pattern. If that won’t help please share a demo where this issue can be replicable. It can be a .zip as well. If you do not want to share it here please send it to support@handsontable.com