Scala play - “not found: value routes” (Eclipse and IDEA)

前端 未结 7 1899
一整个雨季
一整个雨季 2021-02-20 10:46

Occasionally, and seemingly for no reason, I get \"not found: value routes\" compilation error in one of the view templates (after compilation). This happens either in Eclipse o

7条回答
  •  不知归路
    2021-02-20 11:07

    Since there seems to be no answer, I'll at-least describe my workaround: Instead of using

    
    

    in my template HTML, I'm using

    
    

    Since I'm not invoking routes.Assets.at, there is no issue with not finding the value routes. (However, I'm guessing this workaround will easily crumble when I would have need of more complex templates)

提交回复
热议问题