Skip to content

Errors when using Node 18 in React application #81

@nick-winter-vector

Description

@nick-winter-vector

I have recently upgraded the node.js version on my machine from 16.12.0 -> 18.18.0, prior to this change I was able to render my time series fusion chart fine but now when I start my project I am seeing the following runtime errors in the browser:

ERROR
y@http://localhost:3000/static/js/bundle.js:11594:100
./node_modules/fusioncharts/fusioncharts.js/</</t._render@http://localhost:3000/static/js/bundle.js:7922:118
c@http://localhost:3000/static/js/bundle.js:7901:40
./node_modules/fusioncharts/fusioncharts.js/</</t._renderChart@http://localhost:3000/static/js/bundle.js:7911:58
./node_modules/fusioncharts/fusioncharts.js/</</t._setState@http://localhost:3000/static/js/bundle.js:7646:18
./node_modules/fusioncharts/fusioncharts.js/</</Le/<@http://localhost:3000/static/js/bundle.js:7436:13

./node_modules/fusioncharts/fusioncharts.js/</</Le/<@http://localhost:3000/static/js/bundle.js:7440:44
ERROR
#90211 ExtensionExtension Error >> A FusionCharts extension must have a valid extension property.
./node_modules/fusioncharts/fusioncharts.js/</</t.addDep/<@http://localhost:3000/static/js/bundle.js:11440:48
./node_modules/fusioncharts/fusioncharts.js/</</t.addDep@http://localhost:3000/static/js/bundle.js:11433:9
./node_modules/fusioncharts/fusioncharts.js/</</e.addDep@http://localhost:3000/static/js/bundle.js:7550:32
./node_modules/fusioncharts/fusioncharts.js/</</Le/<@http://localhost:3000/static/js/bundle.js:7410:16

package.json

{
  "name": "second-fusioncharts-project",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@testing-library/jest-dom": "^5.17.0",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "fusioncharts": "^3.20.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-fusioncharts": "^4.0.0",
    "react-scripts": "^5.0.1",
    "web-vitals": "^2.1.4"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

What I have tried

  • Deleted node_modules folder and package-lock.json and re-run npm install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions