I've been working on updating my project to angular5.
Within my package.json file:
"dependencies": {
"highcharts-export-csv": "git+https://github.com/highcharts/export-csv.git"
}
"devDependencies": {
"@angular/cli": "1.6.2",
"@angular/compiler-cli": "~5.1.2",
"typescript": "^2.6.2"
}
The upgrade seems to be functional, however, I received a warning message:
@angular/[email protected] requires typescript@'>=2.4.2 <2.6.0' but 2.6.2 was found instead.
Using this version can result in undefined behaviour and difficult to debug problems.
Please run the following command to install a compatible version of TypeScript.
npm install typescript@'>=2.4.2 <2.6.0'
To disable this warning run "ng set warnings.typescriptMismatch=false".
In an attempt to resolve this issue, I switched my TypeScript version to 2.5.3. However, this change led to a compilation error that wasn't present when both cli and TypeScript versions were aligned.
While the error provided a lengthy description, it appears that the main issue lies here:
ERROR in ./src/app/myCsv/myCsv.module.ts
Module not found: Error: Can't resolve 'highcharts-export-csv' in '/myRoute/myCsv'
resolve 'highcharts-export-csv' in '/myRoute/src/app/myCsv'
Parsed request is a module
using description file: /myRoute/package.json (relative path: ./src/app/myCsv)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /myRoute/package.json (relative path: ./src/app/myCsv)
resolve as module