Closed rboixaderg closed 5 years ago
@rboixaderg
It seems there is something wrong with your resolved path. Please double check your baseUrl
of compilerOptions
@rboixaderg It seems there is something wrong with your resolved path. Please double check your
baseUrl
ofcompilerOptions
Hi! In compilerOptions
it is not defined baseUrl
. I defined baseUrl = './'
and it works!
Thanks!!
Hi, I tried to install ngx-echart in my angular app, but when I run my project, shows follow error:
I follow this instructions to install the package:
https://github.com/xieziyu/ngx-echarts#Installation
package.json:
"scripts": { "ng": "ng", "start": "ng serve -o --port 9000", "build": "ng build --prod", "test": "ng test --watch --code-coverage", "lint": "ng lint", "e2e": "ng e2e" }, "dependencies": { "echarts": "^4.2.0-rc.1", "ngx-echarts": "4.0.0", }, "devDependencies": { "@angular-devkit/build-angular": "~0.5.13", "@angular/cli": "6.1.2", "@angular/compiler-cli": "6.1.1", "@angular/language-service": "6.1.1", }
and tsconfig.json
{ ..., "compilerOptions": { ..., "paths": { "echarts": ["node_modules/echarts/dist/echarts.min.js"] } } }
Thanks!