clean-sundown-47111
06/21/2023, 7:58 AMlimited-analyst-99346
06/22/2023, 7:19 AMsrc/Pyz/Zed/[YourModule]/assets/Zed/js/example-name.js
• Then, you need to call it from twig file
{% block footer_js %}
{{ parent() }}
<script src="{{ assetsPath('js/example-name.js') }}"></script>
{% endblock %}
• Run the following commands in order to clear cached and build assets
◦ docker/sdk cli console cache:empty-all
◦ docker/sdk cli npm run zed:watch
• Reload your browser (remember to empty cached on your browser)
OR you can go to vendor such as vendor/spryker/cms-block-gui/src/Spryker/Zed/CmsBlockGui/Presentation/EditGlossary/index.twig to see the example.clean-sundown-47111
06/22/2023, 7:32 AMlimited-analyst-99346
06/22/2023, 7:33 AMnpm install ?clean-sundown-47111
06/22/2023, 7:35 AMdocker/sdk cli npm run zed:watch <- this , after doing that our file compiled to public folder but my file is not in that and i am not able to access it i am getting 404 error in network callclean-sundown-47111
06/22/2023, 7:36 AMlimited-analyst-99346
06/22/2023, 7:40 AMdocker/sdk cli npm run zed:watch was not built successfully.
So can you try to run the below commands:
• console frontend:zed:build
• console frontend:zed:install-dependencies
then run docker/sdk cli npm run zed:watch again.clean-sundown-47111
06/22/2023, 7:43 AMclean-sundown-47111
06/22/2023, 1:20 PMclean-sundown-47111
06/23/2023, 4:55 AM