How to use WebPack Encore together with FOSJsRouting?

512 Views Asked by At

I'm trying to integrate WebPack Encore with FOSJsRouting. I don't have a lot of experience with WebPack but I did use FOSJsRouting successfully without it.

I'm following the official documentation and I'm getting this error when Encore runs the build process>

"export 'default' (imported as 'Routing') was not found in '../../vendor/friendsofsymfony/jsrouting-bundle/Resources/public/js/router.js'

Any ideas? Thanks

1

There are 1 best solutions below

1
Florian Hermann On

You can find your answer in the documentation here : https://symfony.com/doc/master/bundles/FOSJsRoutingBundle/usage.html

You can reply with a comment if you want more help.