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.
tzejan
Posted 2 years ago·Last reply 1 year ago
7 comments
Rafael Ferreira
·1 year agotuanpham I resolved the issue. Thank you
tuan
·1 year agoAstroraf 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.
Rafael Ferreira
·1 year agotuanpham 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.
tuan
·2 years agoThanks tzejan for reporting this. We have updated https://github.com/sisense/compose-sdk-monorepo to fix the issue.
Ilya Kvashenko
Admin2 years agoHello!
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
OP2 years agoHi 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.
Ilya Kvashenko
Admin2 years agoHello!
Thanks for the update, passed your feedback to the relevant team, missed dependencies should be added in the nearest updates.
Best regards,