1

我在 symfony 4.3 中遇到 fosJsRouteBundle 的问题我在控制台中有错误Uncaught Error: The route "xxx" does not exist.

Uncaught Error: The route "app_autocompleted" does not exist.
    at r.value (router.min.js:1)
    at r.value (router.min.js:1)
    at HTMLDocument.<anonymous> (_search.js:12)
    at mightThrow (jquery.js:3557)
    at process (jquery.js:3625)

路由器控制器

/**
 * @Route("/{_locale}/app_autocompleted", name="app_autocompleted", options={"expose": true})
 */

php bin/console fos:js-routing:debug

| Name                     | Method | Scheme | Host | Path 
| app_autocompleted.pl     | ANY    | ANY    | ANY  | /{_locale}/app_autocompleted                                 |
| app_autocompleted.en     | ANY    | ANY    | ANY  | /{_locale}/app_autocompleted 

我在这里搜索解决方案,但我没有找到伟大的 id,我认为问题出在这个https://symfony.com/blog/new-in-symfony-4-1-internationalized-routing

4

0 回答 0