I'm attempting to add a personally desired feature for ngx-charts. I got it to work using the standard src directory but, I wanted to build a release version potentially.
Here are the steps to reproduce the issue:
npm i https://github.com/swimlane/ngx-charts/tarball/master --save
(this grabs the entire project instead of just the release)- Go into your
node_modules/@swimlane/ngx-charts
folder and delete the release directory - Rebuild the directory by running
npm i && npm run package
- Notice how index.d.ts is unable to find any modules even though they're there.
I have noticed that the /common/base-chart.component.d.ts
file is never created for some reason causing this problem. But, I cannot for the life of my figure out why. I've tried multiple webpack versions 2-4 but, every attempt results in the same thing.
I believe I am doing something wrong which is why I did not open an issue. I would appreciate any insight into this problem. Thank you for reading!
I would recommend cloning the repository locally rather than installing it from npm:
Then install dependencies:
After that make your changes to the src (you can run the demo app to test while developing with "npm run start")
Then to package:
This will build the project and update the release folder