55
rated 0 times
[
56]
[
1]
/ answers: 1 / hits: 23193
/ 4 Years ago, tue, february 25, 2020, 12:00:00
I'm trying to use PrimeNG on my Angular project,Iv created a new project and tried to start, but it give me this error, I did the following steps:
npm install primeng --save
npm install @angular/animations --save
npm install Chart.js --save
npm uninstall ng2-charts
I added ../node_modules/chart.js/dist/Chart.js
in my Angular.json
When I try to run my project with ng serve
, it gives me this following error :
An unhandled exception occurred: Script file ../node_modules/chart.js
does not exist
Any help can be usefull, thanks.
Edit:
Here is a part of my Angular.json :
architect: {
build: {
builder: @angular-devkit/build-angular:browser,
options: {
outputPath: dist/YarbiTkhdem,
index: src/index.html,
main: src/main.ts,
polyfills: src/polyfills.ts,
tsConfig: tsconfig.app.json,
aot: true,
assets: [src/favicon.ico, src/assets],
styles: [src/styles.css],
scripts: [../node_modules/chart.js/dist/Chart.js]
},
More From » node.js