amcharts4 icon indicating copy to clipboard operation
amcharts4 copied to clipboard

Jest encountered an unexpected token

Open santosh099 opened this issue 1 year ago • 1 comments

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

Jest Configuration

santosh099 avatar Sep 07 '22 22:09 santosh099

Did you follow this guide? https://www.amcharts.com/docs/v4/getting-started/using-typescript-or-es6/#Using_amCharts_with_Jest

martynasma avatar Sep 08 '22 05:09 martynasma

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.

github-actions[bot] avatar Oct 09 '22 00:10 github-actions[bot]