cancel
Showing results for 
Search instead for 
Did you mean: 

Smartedit mode not working properly

0 Kudos

Hello experts,

I have successfully integrated the smart edit into my storefront by following the guidelines as provided in the documentation. However, after I had logged in to smartedit and choose site and click on a "HomePage" of online catalog I see next popup

and storefront is not loaded.

If I click the "Preview mode" the link storefront is not loaded either.

Please advice what can be the issue ?

Thank you,

Marian

romitchhabra
Participant
0 Kudos

Please check if there is any error in console logs

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

It's probably too late to help you with this. But when I was setting up the demo, I had the same issue, and it was because these were the default values of SmartEditConfig in smart-edit-feature.module:

provideConfig(<SmartEditConfig>{
smartEdit: {
storefrontPreviewRoute: 'STOREFRONT_PREVIEW_ROUTE_PLACEHOLDER',
allowOrigin: 'ALLOWED_ORIGIN_PLACEHOLDER',
},
})

You need to change it to this, so it can connect to the backoffice:

provideConfig(<SmartEditConfig>{
smartEdit: {
storefrontPreviewRoute: 'cx-preview',
allowOrigin: 'localhost:9002',
},
})
0 Kudos

No errors in web console or tomcat console on this step.

If I click on a preview mode link I see the exception with error message:
"Cannot find a composer type."