Hello,
tldr: After importing Handsontable into my Angular component, I’m unable to access functions like Handsontable.renderers.TextRenderer(); instead, I must write Handsontable.default.renderers.TextRenderer().
Also, I can’t use Handsontable.GridSettings. Including Handsontable.GridSettings in my component gives this error:
Property ‘GridSettings’ does not exist on type ‘typeof import("/home/daniel/Angular/Projects/binbase-scheduler/node_modules/handsontable/handsontable")’
I’m working in Angular 9 and using:
“@handsontable/angular”: “^5.1.1”
“handsontable”: “^7.4.2”
I imported HotTableModule from ‘@handsontable/angular’ into my module, and I imported Handsontable into my component like:
import * as Handsontable from ‘handsontable’;
import { HotTableRegisterer } from ‘@handsontable/angular’;
I have “@import ‘~handsontable/dist/handsontable.full.css’;” in my styles/main.css file. I also included references to handsontable node_module files In my angular.json file like so ( which may be unnecessary):
“projects”: {
“binbase-scheduler”: {
…
“architect”: {
“build”: {
…
“options”: {
…
“styles”: [
“node_modules/handsontable/dist/handsontable.full.min.css”,
“src/styles.css”
],
“scripts”: [
“node_modules/handsontable/dist/handsontable.full.js”
]
…
Has anyone else had similar issues? How did you solve them?