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

Unhide Banner when using sppkg #686

Open
sstark1123 opened this issue Feb 21, 2024 · 3 comments
Open

Unhide Banner when using sppkg #686

sstark1123 opened this issue Feb 21, 2024 · 3 comments

Comments

@sstark1123
Copy link

How do you update the sppkg to make it so the banner webpart is visible when using instead of hidden by default?

@eoverfield
Copy link
Collaborator

Check out the following file:
https://github.com/pnp/sp-starter-kit/blob/master/source/react-banner/src/webparts/banner/BannerWebPart.manifest.json

line 18, "hiddenFromToolbox": true,

Set this to false, this will allow the banner to be visible within the toolbox so it may be added to webpages.

Once you set to false, from the react-banner folder, you will need to then run:

gulp bundle --ship
gulp package-solution --ship

And finally upload the generated sppkg to your app catalog

@sstark1123
Copy link
Author

Thank you.

@sstark1123
Copy link
Author

When I run gulp bundle --ship I get

Error - sass - src\webparts\banner\components\Banner.module.scss(1,9): error Error: Can't find stylesheet to import.

1 │ @import '~@fluentui/react/dist/sass/References.scss';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src\webparts\banner\components\Banner.module.scss 1:9 root stylesheet

@sstark1123 sstark1123 reopened this Feb 22, 2024
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

2 participants