0

I have a question about webasset.

I am using ckan. I updated a library in ckanext_geoview plugin in ckan. But when calling this library with webassets comes the old version. What path can I follow?

webassets.yml like this

openlayers_js:
  filter: rjsmin
  output: ckanext-geoview/%(version)s_openlayers.js
  extra:
    preload:
      - base/main
  contents:
    - js/vendor/underscore/underscore.js
    - js/vendor/proj4/dist/proj4-src.js
    - js/vendor/openlayers/ol-debug.js
    - js/vendor/ol-helpers/ol-helpers.js
    - js/vendor/ol-helpers/ol-layer-switcher.js
    - js/ol_preview.js

updated the underscore library to version 1.13.4 enter image description here

but old version is coming enter image description here

What should I do to make the existing javascript files appear? I would be glad if you could help me.

  • 2
    have you tried with `ckan asset build` ? – tino097 Aug 29 '22 at 10:22
  • Thanks for your return. Yes, I tried. Unfortunately it is showing the old javascript file again. – mcetinyamac Aug 29 '22 at 10:59
  • not sure what you could do now, maybe is caching issue ?! Restarting the server, double check the `asset ` tag if loads correctly – tino097 Aug 29 '22 at 11:17
  • I did "ckan asset clean" and "ckan asset build" again. I restarted the server as you said. My current js file is coming. But the old one still shows up in "/webassets/ckanext-geoview/" – mcetinyamac Aug 30 '22 at 12:27
  • least thiing that i could think of is that maybe your template is not loaded or gets overwritten. Try to set your extension before the rest in `ckan.plugins` – tino097 Aug 31 '22 at 12:45

0 Answers0