Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recharts dependency fails tests in backstage app #108

Open
s-diez opened this issue Oct 6, 2022 · 0 comments
Open

Recharts dependency fails tests in backstage app #108

s-diez opened this issue Oct 6, 2022 · 0 comments

Comments

@s-diez
Copy link

s-diez commented Oct 6, 2022

Similiar to the problems with recharts reported here. Running the tests in a backstage app which uses this plugin will fail with the following error.

● Test suite failed to run

      x Expected ':', got ')'
       ,-[/home/sdiez/projects/gitlab.breuni.de/backstage/backstage/node_modules/d3-scale/node_modules/d3-array/src/cumsum.js:5:5]
     5 | : v => (sum += +valueof(v, index++, values) || 0));
       :                                                  ^
       `----

    Caused by:
        0: failed to process input file
        1: Syntax Error

      at Compiler.transformSync (../../../node_modules/@swc/core/index.js:241:29)
      at transformSync (../../../node_modules/@swc/core/index.js:348:21)
      at Object.process (../../../node_modules/@swc/jest/index.js:72:45)
      at Object.process (../../../node_modules/@backstage/cli/config/jestSwcTransform.js:27:27)
      at ScriptTransformer.transformSource (../../../node_modules/@jest/transform/build/ScriptTransformer.js:619:31)
      at ScriptTransformer._transformAndBuildScript (../../../node_modules/@jest/transform/build/ScriptTransformer.js:765:40)
      at ScriptTransformer.transform (../../../node_modules/@jest/transform/build/ScriptTransformer.js:822:19)

Downgrading to recharts version 2.1.12 seems to solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant