-
Notifications
You must be signed in to change notification settings - Fork 3
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
Could not find a declaration file for module 'ods-charts'. #101
Labels
bug
Something isn't working
Comments
To solve it :
|
Another solution to solve it apply this patch : diff --git a/node_modules/ods-charts/package.json b/node_modules/ods-charts/package.json
index f518d00..7e0e845 100644
--- a/node_modules/ods-charts/package.json
+++ b/node_modules/ods-charts/package.json
@@ -9,7 +9,7 @@
"./dist/**/*"
],
"main": "./dist/ods-charts.js",
- "types": "./dist/ods-charts.d.js",
+ "types": "./dist/index.d.ts",
"scripts": {
"build": "webpack",
"netlify": "npm run build ; cp -R dist docs/ ; npm run typedoc", |
Forking the repo in the meantime... |
hannahiss
added a commit
to hannahiss/ods-charts-fork
that referenced
this issue
Feb 5, 2024
9 tasks
Tested ok for me, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Describe the issue
I made a very simple test graph using sample at https://github.com/Orange-OpenSource/ods-charts/tree/main/test/angular-ngx-echarts and angular 17.
I had to make a few adaptations for Angular 17 not using app.module.ts anymore.
Finally I blocked on this issue at build time :
I solved it by going to folder node_modules/ods-charts and move all files in "dist" folder to parent folder. Command used was :
mv dist/* .
It ran well after that... but only on my local computer. Is there an issue with the packaging of the library?
Reduced test cases
ng new odsbug
,cd odsbug
ng generate component chart
What operating system(s) are you seeing the problem on?
macOS, Linux
What browser(s) are you seeing the problem on?
No response
What version of ODS Charts are you using?
1.0.0 alpha 2
The text was updated successfully, but these errors were encountered: