I am using angular 11.2.8 and if my handsonlibrary latest version which is 11.0.1 then i get following error
core.js:6210 ERROR Error: You declared cell type "date" as a string that is not mapped to a known object.
Cell type must be an object or a string mapped to an object registered by
"Handsontable.cellTypes.registerCellType" method
at _getItem (registry.mjs:22)
at expandMetaType (utils.mjs:17)
at ColumnMeta.updateMeta (columnMeta.mjs:82)
at MetaManager.updateColumnMeta (index.mjs:157)
at Core.updateSettings (core.mjs:2442)
at Core.init (core.mjs:1115)
at handsontable-angular.js:208
at ZoneDelegate.invoke (zone-evergreen.js:372)
at Zone.run (zone-evergreen.js:134)
at NgZone.runOutsideAngular (core.js:28520)
but if handsontable version ^10.0.0 i get following error
zone.js:192 Uncaught TypeError: Cannot read properties of null (reading 'destroy')
at n.value (handsontable.full.min.js:623)
at n.value (handsontable.full.min.js:623)
at n.value (handsontable.full.min.js:623)
at Object.l.onQueueEmpty (handsontable.full.min.js:501)
at Object.checkIfQueueIsEmpty (handsontable.full.min.js:501)
at Object.removeValidatorFormQueue (handsontable.full.min.js:501)
at eval (handsontable.full.min.js:501)
at a (handsontable.full.min.js:501)
at eval (handsontable.full.min.js:501)
at n.u [as validator] (handsontable.full.min.js:629)
value @ handsontable.full.min.js:623
value @ handsontable.full.min.js:623
value @ handsontable.full.min.js:623
l.onQueueEmpty @ handsontable.full.min.js:501
checkIfQueueIsEmpty @ handsontable.full.min.js:501
removeValidatorFormQueue @ handsontable.full.min.js:501
eval @ handsontable.full.min.js:501
a @ handsontable.full.min.js:501
eval @ handsontable.full.min.js:501
u @ handsontable.full.min.js:629
eval @ handsontable.full.min.js:501
ZoneDelegate.invokeTask @ zone.js:421
Zone.runTask @ zone.js:188
ZoneTask.invokeTask @ zone.js:495
ZoneTask.invoke @ zone.js:484
timer @ zone.js:2065
(anonymous) @ webcontainer.fc4d7a197ee1a758c28dc4fa30e0985945a0859e.js:15
u @ webcontainer.fc4d7a197ee1a758c28dc4fa30e0985945a0859e.js:15
r @ webcontainer.fc4d7a197ee1a758c28dc4fa30e0985945a0859e.js:15
postMessage (async)
n @ webcontainer.fc4d7a197ee1a758c28dc4fa30e0985945a0859e.js:15
c.setImmediate @ webcontainer.fc4d7a197ee1a758c28dc4fa30e0985945a0859e.js:15
scheduleTask @ zone.js:2087
ZoneDelegate.scheduleTask @ zone.js:407
Zone.scheduleTask @ zone.js:232
Zone.scheduleMacroTask @ zone.js:255
eval @ zone.js:2103
proto.<computed> @ zone.js:1382
_registerImmediate @ handsontable.full.min.js:501
validateCell @ handsontable.full.min.js:501
te @ handsontable.full.min.js:501
setDataAtCell @ handsontable.full.min.js:501
populateFromArray @ handsontable.full.min.js:501
populateFromArray @ handsontable.full.min.js:501
value @ handsontable.full.min.js:629
value @ handsontable.full.min.js:629
eval @ handsontable.full.min.js:629
t.fastCall @ handsontable.full.min.js:55
runLocalHooks @ handsontable.full.min.js:64
eval @ handsontable.full.min.js:629
i @ handsontable.full.min.js:55
ZoneDelegate.invokeTask @ zone.js:421
Zone.runTask @ zone.js:188
ZoneTask.invokeTask @ zone.js:495
invokeTask @ zone.js:1536
globalZoneAwareCallback @ zone.js:1573
my settings for table are like these
hotSettings: Handsontable.GridSettings = {
manualRowResize: true,
manualColumnResize: true,
columns: [{
title: 'Date',
type: 'date',
allowInvalid: true,
correctFormat: true,
dateFormat: 'DD.MM.YYYY',
allowEmpty: true,
}],
startRows: 5,
rowHeaders: true,
height: 'auto',
licenseKey: 'non-commercial-and-evaluation',
allowRemoveRow: true,
outsideClickDeselects: false,
};
what can be done here to avoid such things @adrian.szymanski
thanks in advance