You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use this library (added with npm) inside an Angular application I get an error saying:
TypeError: Cannot set property 'Rectangle' of undefined.
This error is resolved when I change the getTreemap function inside the index.js to an arrow function.
I try to import the module inside my component as follows: import * as getTreemap from 'treemap-squarify'; declare var require: any; const { getTreemap } = require('treemap-squarify');
The text was updated successfully, but these errors were encountered:
Hi!
When I try to use this library (added with npm) inside an Angular application I get an error saying:
TypeError: Cannot set property 'Rectangle' of undefined.
This error is resolved when I change the getTreemap function inside the index.js to an arrow function.
I try to import the module inside my component as follows:
import * as getTreemap from 'treemap-squarify'; declare var require: any; const { getTreemap } = require('treemap-squarify');
The text was updated successfully, but these errors were encountered: