amcharts4
amcharts4 copied to clipboard
Jest encountered an unexpected token
I am seeing this error when I run the unit tests coverage on my windows machine.
export { System, system } from "./.internal/core/System";
SyntaxError: Unexpected token 'export'
import * as am4core from '@amcharts/amcharts4/core'; ^
we are using the amcharts4 with
node: "^16.13.1" react: "^17.0.2"
and here is my jest configuration
Did you follow this guide? https://www.amcharts.com/docs/v4/getting-started/using-typescript-or-es6/#Using_amCharts_with_Jest
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.