-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Has no default export #1
Comments
FWIW this is using the free MBD Angular Admin Dashboard as a starter - I tried it using the MDB Vue starter and was able to get it working. |
Hi @503geek , I actually did not see that @types accepted my pull request for the type definition file! It was stuck in review for weeks due to the sheer size of it. I'll look into updating that. In the meantime, I released this package with a local typedef file in src/. Can you see if that works for you? |
Thanks for the reply Mike. I still see |
@mike-schultz please have a look on #2. |
Latest version of |
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
orimport { 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 thezingchart
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.The text was updated successfully, but these errors were encountered: