willsoto / ng-chartist

Angular component for Chartist.js
Apache License 2.0
126 stars 44 forks source link

Error getting while ng serve ? #235

Closed PrasanthMV1987 closed 5 years ago

PrasanthMV1987 commented 5 years ago

I am getting the follwing error while doing ng serve . ERROR in multi ./node_modules/chartist/dist/chartist.css ./node_modules/ng2-slim-loading-bar/style.css ./node_modules/c3/c3.min.css ./node_modules/ngx-toastr/toastr.css ./node_modules/quill/dist/quill.snow.css ./node_modules/quill/dist/quill.bubble.css ./node_modules/angular-calendar/css/angular-calendar.css ./node_modules/dragula/dist/dragula.css ./node_modules/@swimlane/ngx-datatable/release/index.css ./node_modules/@swimlane/ngx-datatable/release/themes/material.css ./node_modules/@swimlane/ngx-datatable/release/assets/icons.css ./src/assets/vendor/css-chart.css ./src/assets/scss/style.scss ./src/styles.css Module not found: Error: Can't resolve '/node_modules/chartist/dist/chartist.css' in '' ERROR in multi ./node_modules/chartist/dist/chartist.css ./node_modules/ng2-slim-loading-bar/style.css ./node_modules/c3/c3.min.css ./node_modules/ngx-toastr/toastr.css ./node_modules/quill/dist/quill.snow.css ./node_modules/quill/dist/quill.bubble.css ./node_modules/angular-calendar/css/angular-calendar.css ./node_modules/dragula/dist/dragula.css ./node_modules/@swimlane/ngx-datatable/release/index.css ./node_modules/@swimlane/ngx-datatable/release/themes/material.css ./node_modules/@swimlane/ngx-datatable/release/assets/icons.css ./src/assets/vendor/css-chart.css ./src/assets/scss/style.scss ./src/styles.css Module not found: Error: Can't resolve '/node_modules/quill/dist/quill.bubble.css' in '' ERROR in multi ./node_modules/chartist/dist/chartist.css ./node_modules/ng2-slim-loading-bar/style.css ./node_modules/c3/c3.min.css ./node_modules/ngx-toastr/toastr.css ./node_modules/quill/dist/quill.snow.css ./node_modules/quill/dist/quill.bubble.css ./node_modules/angular-calendar/css/angular-calendar.css ./node_modules/dragula/dist/dragula.css ./node_modules/@swimlane/ngx-datatable/release/index.css ./node_modules/@swimlane/ngx-datatable/release/themes/material.css ./node_modules/@swimlane/ngx-datatable/release/assets/icons.css ./src/assets/vendor/css-chart.css ./src/assets/scss/style.scss ./src/styles.css Module not found: Error: Can't resolve '/node_modules/quill/dist/quill.snow.css' in '' ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected. node_modules/rxjs/internal/types.d.ts(81,74): error TS1005: ';' expected. node_modules/rxjs/internal/types.d.ts(81,77): error TS1109: Expression expected.

hakimio commented 5 years ago

Did you specify Chartist CSS exactly as shown in the README:

"styles": [
  "node_modules/chartist/dist/chartist.css",
  "src/style.scss"
],

Without leading slash.

PrasanthMV1987 commented 5 years ago

Yes , that's is there as below "styles": [ "node_modules/chartist/dist/chartist.css", "node_modules/ng2-slim-loading-bar/style.css", "node_modules/c3/c3.min.css", "node_modules/ngx-toastr/toastr.css", "node_modules/quill/dist/quill.snow.css", "node_modules/quill/dist/quill.bubble.css", "node_modules/angular-calendar/css/angular-calendar.css", "node_modules/dragula/dist/dragula.css", "node_modules/@swimlane/ngx-datatable/release/index.css", "node_modules/@swimlane/ngx-datatable/release/themes/material.css", "node_modules/@swimlane/ngx-datatable/release/assets/icons.css", "src/assets/vendor/css-chart.css", "src/assets/scss/style.scss", "src/styles.css" ],

hakimio commented 5 years ago

Did you install all the dependencies? Can you create an example project on github reproducing the issue?

hakimio commented 5 years ago

You can also try to remove css definitions in angular.json one-by-one to see when the error disappears.

willsoto commented 5 years ago

It’s really hard to see it cause the formatting is wrong, but it looks like you have multiple errors:

 Module not found: Error: Can't resolve '/node_modules/quill/dist/quill.snow.css' in '' 
ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' 
expected. node_modules/rxjs/internal/types.d.ts(81,74): error TS1005: ';' 
expected. node_modules/rxjs/internal/types.d.ts(81,77): error TS1109: Expression expected.
willsoto commented 5 years ago

@PrasanthMV1987 I am closing this since I do not believe this is related to us according to the stack trace. Feel free to reopen if it is a problem on our end. Thanks!

PrasanthMV1987 commented 5 years ago

Thanks. Got fixed. It was my problem.

saisandirikrishna commented 4 months ago

Hi @PrasanthMV1987 , I am also getting problem with chartist while upgrading from Angular 11 to 18.

Error: Can't resolve 'node_modules/chartist/dist/chartist.css'

I have already used chartist by Including the the chartist CSS in angular.json in older version which was worked.

"styles": [ { "input": "node_modules/@progress/kendo-theme-default/dist/all.css" }, "src/styles.scss", "node_modules/chartist/dist/chartist.css", "node_modules/quill/dist/quill.core.css", "node_modules/quill/dist/quill.snow.css", "node_modules/quill/dist/quill.bubble.css", "node_modules/angular-calendar/css/angular-calendar.css", "node_modules/dragula/dist/dragula.css", "node_modules/perfect-scrollbar/css/perfect-scrollbar.css", "node_modules/@swimlane/ngx-datatable/index.css", "node_modules/@swimlane/ngx-datatable/themes/material.css", "node_modules/@swimlane/ngx-datatable/assets/icons.css", "src/assets/styles/style.scss", "node_modules/primeicons/primeicons.css", "node_modules/primeng-lts/resources/themes/saga-orange/theme.css", "node_modules/primeng-lts/resources/primeng.min.css"

        ],

can you please let me know what changes you did to get fix the issue