Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Yarn build fails with 401 Unauthorized #979

Open
erikwett opened this issue Apr 11, 2023 · 8 comments
Open

Yarn build fails with 401 Unauthorized #979

erikwett opened this issue Apr 11, 2023 · 8 comments

Comments

@erikwett
Copy link

When I try to build an extension, yarn gives the following error:
error An unexpected error occurred: "https://npm.pkg.github.com/download/@qlik-trial/sprout/2.45.6/f62fa8066cf7ac6ddb3b1f0f1e3cdd65933d060a: Request failed "401 Unauthorized"".

Something missing in my setup??

yarn-error.log

@haxxmaxx
Copy link
Collaborator

haxxmaxx commented Apr 11, 2023

Unfortunately, it is not possible for devs without access to Qlik's internal packages at the moment. We are using the @qlik-trial/sprout package, which is currently private. I am pushing for it to become public, or at very least a work-around for devs without access.

You could try to remove the references to sprout. It is basically doing two things: Creating a theme (i.e. CSS settings for material UI (a component library)) and using custom icons. The theme you could probably replace with just an empty object, since the theme is just overrides. And the icons you could switch to the corresponding material ui icons (list of them are here: https://mui.com/material-ui/material-icons/)

@thomaspessato
Copy link

This is still happening.

I cannot even download the extension, since I could not find any builds for it (zip file).

What I was doing is cloning and building. that way I could upload it to my Qlik environment. now there's no way to do it.

@haxxmaxx
Copy link
Collaborator

Yes, it is. Unfortunately there is still no public sprout package.
If you need it in Qlik Sense, it has been added to the visualization bundle in the May 2023 release and on cloud. Here is the documentation.
https://help.qlik.com/en-US/sense/May2023/Subsystems/Hub/Content/Sense_Hub/Visualizations/VisualizationBundle/sn-straight-table.htm

@thomaspessato
Copy link

Thank you @haxxmaxx

I ended up deleting the sprout package from everywhere and replaced with a simple

with a - and + chars to make it build and not break everything.

I also saw that this happens to the sn-pivot-table as well, so I did it on that repo too.

@haxxmaxx
Copy link
Collaborator

ok good that you found a work-around. We'll keep this issue open until the everyone can run a build the sn-table

@jeff-1984
Copy link

jeff-1984 commented Jan 10, 2024

Hello, is there any chance that the @qlik-trial/sprout dependency becomes public ?

I see there is a lot of usage of these objects in the project, did you replace them by something else @thomaspessato ?

Ex: in HeadCellMenu.tsx

Is that just icons ?

Thanks,
JF

@haxxmaxx
Copy link
Collaborator

HI,

Unfortunately I don't have any news about when and if sprout will become public. However there are onging discussions about how we should treat this issue. This code being open-source but not possible to run, doesn't really make sense. I will update here when there are any news.

@thomaspessato
Copy link

thomaspessato commented Jan 11, 2024

@jeff-1984 I deleted it. Replaced with - and + (or any other icon that you want. I used a simple string). Quick solution

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

No branches or pull requests

4 participants