Category: defined

Symfony 4 – Webpack-encore use FosJsRouting : Routing is not defined

I try to use FosJsRouting with Webpack-encore in my Symfony 4 project. I did : 1. composer require friendsofsymfony/jsrouting-bundle 2. php bin/console assets:install –symlink public 3. php bin/console fos:js-routing:dump –format=json –target=public/js/fos_js_routes.json And in my app.js : // FosJsRouting const routes…