Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

ClinetlIbs in Pblish Instance

apmagss
Level 2
Level 2

Hi All,

 

Did anyone face issue with client libs in publish instance..like  latest clients code is available but rendering is taking old client libs.What might be the issue?

 

While rendering i added as ? query params then it is reflecting latest code.

 

How to fix any idea?

 

Thanks,

Nani

1 Accepted Solution
Kiran_Vedantam
Correct answer by
Community Advisor
Community Advisor

Hi @apmagss,

 

You can debug like below:

  1. Check if the latest clientlibs are in publish instance
    1. If not replicate or install them properly
  2. Check if the code is called properly in the component
    1. If not add the latest stuff properly
  3. Clear the cache and load the page
    1. This could fix your issue as it is working for you when the "?" is added to the URL
  4. View the source of the page and check the clientlibs that are loading
    1. This could lead you to the clientlibs that are loading on that page for your component

Hope this helps!

 

Thanks,

Kiran Vedantam.

View solution in original post

0 Replies
Kiran_Vedantam
Correct answer by
Community Advisor
Community Advisor

Hi @apmagss,

 

You can debug like below:

  1. Check if the latest clientlibs are in publish instance
    1. If not replicate or install them properly
  2. Check if the code is called properly in the component
    1. If not add the latest stuff properly
  3. Clear the cache and load the page
    1. This could fix your issue as it is working for you when the "?" is added to the URL
  4. View the source of the page and check the clientlibs that are loading
    1. This could lead you to the clientlibs that are loading on that page for your component

Hope this helps!

 

Thanks,

Kiran Vedantam.

View solution in original post

apmagss
Level 2
Level 2
in author it is working fine but in publish same code package installed but not reflecting CSS styles.
Kiran_Vedantam
Community Advisor
Community Advisor
Clear the browser cache or replicate the complete code package again to the publisher
Arun_Patidar
Community Advisor
Community Advisor

Hi,

This is due to dispatcher caching, you should clear the dispatcher caching.

apmagss
Level 2
Level 2
This is on publish instance and laetst code available on publish as well as verified.
Bimmi_Soi
Community Advisor
Community Advisor

@apmagss ,

 

As you said that While rendering when you added as ? query params then it is reflecting latest code.

Can you please restart your publish environment?

 

Hope tis helps!!
Thanks

shubham_b
Community Advisor
Community Advisor

Hello,

Can you try hitting the publish instance only (and not dispatcher or VIP) and see if it seems fine? It looks like you are trying to hit the dispatcher/VIP and seeing cached values. Please try to clear any dispatcher and CDN/VIP caching (if any). 

Also you can compare the js or css call for publish vs dispatcher/s to see the code difference eg: http://host:4503/etc.clientlibs/project/clientlibs/component/clientlib-component.js vs  http://host:8080/etc.clientlibs/project/clientlibs/component/clientlib-component.js   After cache clear these should be same