You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running testcases using Jest and Enzyme. I get an error like below.
ReferenceError: AmCharts is not defined at node_modules/@amcharts/amcharts3-react/amcharts3-react.js:253:3 at Object.<anonymous> (node_modules/@amcharts/amcharts3-react/amcharts3-react.js:298:3) at Object.<anonymous> (node_modules/@amcharts/amcharts3-react/index.js:6:3)
The AmCharts are imported in my project like below import AmCharts from '@amcharts/amcharts3-react'
I found a solution that is to be added to amcharts-react plugin at line 252. var AmCharts = AmCharts || {};
This is solving the issue. Can I create a PR for this?
Or alternatively can we ignore the import while running the test case?
The text was updated successfully, but these errors were encountered:
While running testcases using Jest and Enzyme. I get an error like below.
ReferenceError: AmCharts is not defined at node_modules/@amcharts/amcharts3-react/amcharts3-react.js:253:3 at Object.<anonymous> (node_modules/@amcharts/amcharts3-react/amcharts3-react.js:298:3) at Object.<anonymous> (node_modules/@amcharts/amcharts3-react/index.js:6:3)
The AmCharts are imported in my project like below
import AmCharts from '@amcharts/amcharts3-react'
I found a solution that is to be added to amcharts-react plugin at line 252.
var AmCharts = AmCharts || {};
This is solving the issue. Can I create a PR for this?
Or alternatively can we ignore the import while running the test case?
The text was updated successfully, but these errors were encountered: