cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to build Compose SDK

tzejan
7 - Data Storage
7 - Data Storage

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.



1 ACCEPTED SOLUTION

ILLIA
Sisense Team Member
Sisense Team Member

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,

ILLIA

View solution in original post

7 REPLIES 7

ILLIA
Sisense Team Member
Sisense Team Member

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,

ILLIA

tzejan
7 - Data Storage
7 - 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
Sisense Team Member
Sisense Team Member

Hello!

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

Best regards,

ILLIA

tuanpham
Sisense Team Member
Sisense Team Member

Thanks tzejan for reporting this. We have updated https://github.com/sisense/compose-sdk-monorepo to fix the issue.

Astroraf
10 - ETL
10 - ETL

@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
Sisense Team Member
Sisense Team Member

@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.

Astroraf
10 - ETL
10 - ETL

@tuanpham I resolved the issue. Thank you