score:2

Accepted answer

I found what was causing the problem.

I install everything using the -g option. The packages was installed globally, now I put them as dependencies in my project and use npm install.

It works perfectly now.

This is how my package.json looks now

{
  "name": "my-app",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "axios": "^0.19.0",
    "react": "~16.8.6",
    "react-dom": "^16.8.6",
    "highcharts": "^6.0.0",
    "typescript": "^2.8.0",
    "highcharts-react-official": "^2.2.0",
    "eslint": "^5.0.0",
    "react-scripts": "3.0.1"
  },

score:4

You may have to install the typescript version of highcharts.

npm install @types/highcharts

Related Query

More Query from same tag