Forum Discussion

tzejan's avatar
tzejan
Data Storage
10-19-2023
Solved

Unable to build Compose SDK

Hi,

I have cloned the Compose SDK from https://github.com/sisense/compose-sdk-monorepo 
As per the instructions for installation, I am trying to install and build the repo.

However, yarn complains about not finding a script named "build" when I ran it.

Same goes for running Storybook.



  • Hello!

    Hope you are doing great.
    Kindly ask you to check node version that you are using along with the yarn version. 
    Just used node 18.16.0 and yarn 1.22.17 and the issue is not reproducible using this setup, both install and build were initiated successfully. 

    Best regards,

7 Replies

  • ILLIA's avatar
    ILLIA
    Sisense Employee

    Hello!

    Hope you are doing great.
    Kindly ask you to check node version that you are using along with the yarn version. 
    Just used node 18.16.0 and yarn 1.22.17 and the issue is not reproducible using this setup, both install and build were initiated successfully. 

    Best regards,

    • tzejan's avatar
      tzejan
      Data Storage

      Hi Illia,

      Thank you for the tips, I have used Node v18.18.2 and it works.

      All the packages can be built except for sdk-ui-angular with the message

      [@sisense/sdk-ui-angular]: Cannot find package '@angular/compiler' imported from ...

      It is not an issue for us, but just wanted to let you know.

      • ILLIA's avatar
        ILLIA
        Sisense Employee

        Hello!

        Thanks for the update, passed your feedback to the relevant team, missed dependencies should be added in the nearest updates.

        Best regards,

  • Astroraf's avatar
    Astroraf
    Data Pipeline

    tuanpham I have tried replicating this and I getting multiple errors. One in particular is saying "canvas canvas@npm:2.11.2 must be built because it never has been before or the last one failed". I tried installing canvas-prebuilt but received more errors. 

  • tuanpham's avatar
    tuanpham
    Sisense Employee

    Astroraf  We will need more details on your environment to troubleshoot this. I am using Node v18.16.0 and yarn 3.2.3 and the build went through successfully.