Description
I've followed the steps in the readme exactly, I've tried re-installing with npm, manually adding the @types module and using yarn instead of npm.
I'm using Angular 8, Node 12 and Npm 6. It seems no matter what I do I get the following error:
ERROR in node_modules/zingchart-angular/lib/zingchart-angular.component.d.ts(3,8): error TS1192: Module '"[...obfuscated...]/node_modules/@types/zingchart/index"' has no default export.
Line 3 in question, which shows a compiler error, is import zingchart from 'zingchart';
and points to the @types
file, same as the above error.
I've tried various fixes to handle this, including writing my own .d.ts
file what I understand to be a default export, but to no avail. I've also tried using different styles of imports (i.e. import * as ZingchartAngularModule
or import { ZingchartAngularModule }
)
I'm not a seasoned Angular dev, so I may just need to get more familiar with how to resolve these errors in general, and how the structure of declared exports works, but this still seems like a gap in the installation instructions. zingchart-angular
appears to have an ambiguous dependency on the zingchart
module. Though the core of the issue appears to be in the @types
module, and which yarn installs automatically, but npm does not. The fundamental issue is evading me at the moment, and I'm not sure how to proceed.