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

Rendering problem on my blazor server #26

Closed
mohamedTK opened this issue Oct 20, 2021 · 3 comments · Fixed by #25
Closed

Rendering problem on my blazor server #26

mohamedTK opened this issue Oct 20, 2021 · 3 comments · Fixed by #25
Assignees
Labels
bug Something isn't working

Comments

@mohamedTK
Copy link

Describe the bug
After installing BlazorScheduler on my blazor server project, I seem to be running into a rendering problem at runtime. The exact error I ran into is the following:

An unhandled exception occurred while processing the request.
InvalidOperationException: JavaScript interop calls cannot be issued at this time. This is because the component is being statically rendered. When prerendering is enabled, JavaScript interop calls can only be performed during the OnAfterRenderAsync lifecycle method.

How should I adress this problem?

To Reproduce
Steps to reproduce the behavior:

  1. Intalling bazorScheduler on my Blazor server
  2. Running my project with dotnet run command
  3. See error

Expected behavior
No errors at runtime and my BlazorScheduler component correctly rendered.

Screenshots
image

Additional context
N.A.

@valincius valincius self-assigned this Oct 20, 2021
@valincius
Copy link
Owner

Thank you for creating this issue. I will have a look and get back to you.

@valincius valincius mentioned this issue Oct 20, 2021
@valincius
Copy link
Owner

This will be fixed in 3.1.0 - I hope to get it out by tomorrow. You can pull the 3.1.0 branch if you'd like to get it sooner.

Thanks!

@valincius valincius added the bug Something isn't working label Oct 20, 2021
@valincius valincius linked a pull request Oct 20, 2021 that will close this issue
@mohamedTK
Copy link
Author

Thank you! I appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants