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

When opening the blazorbook location : "there is nothing #4

Closed
paulvanbladel opened this issue Feb 27, 2023 · 3 comments
Closed

When opening the blazorbook location : "there is nothing #4

paulvanbladel opened this issue Feb 27, 2023 · 3 comments

Comments

@paulvanbladel
Copy link

Looks like a very interesting project.
When I open the blazorbook location, I get the above error (which is simply the "notfound" found route of my router component in the main app).

I installed your nuget in both the webassembly project and the razor class lib (i named it "StoryBook").
I added the "StoryBook" assembly as referenced assembly
and added following line in program.cs

builder.RegisterAllStories(Assembly.Load("StoryBook"));

What am I missing?

@aeagle
Copy link
Owner

aeagle commented Feb 28, 2023

Hi @paulvanbladel. It seems I've missed a steps in the instructions to setup. The following needs to be added:

  1. Add @using BlazorBook.Components to your _Imports.razor
  2. Add a <BlazorBook.Resources /> at the top of App.razor
  3. Add an AdditionalAssemblies prop on the <Router /> component in App.razor like so:
<Router AppAssembly="@typeof(App).Assembly" AdditionalAssemblies="new[] { typeof(BlazorBook.UI).Assembly }">

I'll have to see if I can get this setup more automatic when I get a mo. I do seem to have a styling issue with the UI in the beta package I deployed. I'll also look to get a fix in for that.

@aeagle
Copy link
Owner

aeagle commented Feb 28, 2023

I've just published a new version - 0.0.1-beta.2. This should sort the UI styling issue.

@paulvanbladel
Copy link
Author

Thanks a lot

@aeagle aeagle closed this as completed Mar 3, 2023
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