mpx200 / ng-dygraphs

Angular 2+ library for support of dygraphs(http://dygraphs.com) charts
MIT License
3 stars 9 forks source link

Failed to load ng-dygraphs.component.html #18

Closed areiterer closed 6 years ago

areiterer commented 6 years ago

Since updating from 0.3.5 to 0.3.8/0.3.9 I get some weird errors when I want to start my application:

Uncaught ReferenceError: exports is not defined at scripts.bundle.js:sourcemap:44808

GET http://localhost:4200/ng-dygraphs.component.html 404 (Not Found)

Unhandled Promise rejection: Failed to load ng-dygraphs.component.html ; Zone: <root> ; Task: Promise.then ; Value: Failed to load ng-dygraphs.component.html

When I go back to 0.3.5 everything works fine.

JimiC commented 6 years ago

Confirmed. I have the same issue. The issue is created because from 0.3.6 we are pointing to an entry point that is not compatible when used with a ts angular project.

Everything works if you

JimiC commented 6 years ago

@areiterer Please try my suggestions and let me know if the workaround works for you.

mpx200 commented 6 years ago

let's keep this open till we migrate it to ng-packagr, until then please try with workaround

areiterer commented 6 years ago

Thanks for the workaround, I just tried it and it works for me. As soon as the next version is out, my colleague will try it out. Thanks for the good work!

mpx200 commented 6 years ago

Hi @areiterer can you please check out version 0.4.0

JimiC commented 6 years ago

@areiterer With 0.4.0 you can remove the include section in tsconfig.json.

areiterer commented 6 years ago

Coworker just tried it - everything works fine again! Thanks!