-
Notifications
You must be signed in to change notification settings - Fork 14
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
Server Error Error: No matching bindings found for serviceIdentifier: Symbol(CmsEventBusService) #26
Comments
@hachok How to go about it in angular 16? |
@hachok Unfortunately, this is still an issue with the latest version the SDK, we are unable to render brXM content server-side in our mostly standard React applications. We are not using Next.js or any other similar framework. We recently upgraded to the latest version from v17.x to resolve some security vulnerabilities stemming from that version of the SDK. In v17.x we had no server-side issues, however after the upgrade we now get the following error server-side:
Once the app hydrates client-side all is good, but we load the impacted pages initially in a bad state (blank sections or entire pages are blank). The issue seems to occurs soon after One workaround I have been able to do to get a partial render of the page (at least to render components that are not brXM-derived) is to use the I see there is also this recently opened and somewhat related issue: #38 Do you have any suggestions on how to resolve this issue? Thanks! |
Hi @sforsberg! Were you able to resolve the issue? I tried to reproduce it using React 18 and React SDK 24.0.0 but couldn't. Does the issue occur when you open your SPA in the preview? |
I believe the issue is related to the optional binding for CmsEventBusService
(bind(CmsEventBusService).toDynamicValue(() => new Typed()).inSingletonScope().when(() => typeof window !== "undefined"))
. If that is the case, we won't be able to use initialize on the server side. Could you please take a look at it and provide an explanation?The text was updated successfully, but these errors were encountered: