Closed areiterer closed 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
"main": "./lib/index.js",
from package.json
of ng-dygraphs
folder in node_modules
"../node_modules/ng-dygraphs/lib/index.js"
from scripts
in .angular-cli.json
tsconfig.json
of the angular
project
"include" : [
"src/**/*",
"node_modules/ng-dygraphs/index.ts"
]
Now it will work for a ts
project.
@areiterer Please try my suggestions and let me know if the workaround works for you.
let's keep this open till we migrate it to ng-packagr
, until then please try with workaround
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!
Hi @areiterer can you please check out version 0.4.0
@areiterer With 0.4.0
you can remove the include
section in tsconfig.json
.
Coworker just tried it - everything works fine again! Thanks!
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.