Closed sihingkk closed 9 years ago
The problem was missing dependency.
but still running by 'sbt run' browser doesn't see any javasript files..
Can you post the sample app to github or the steps to reproduce this issue?
I just did
activator new example play-yeoman and than in example folder I run 'sbt' and 'yo angular'.
It seems that play routes are not handling bower files. If those information will be not enough to reproduce it - let me know I will put this project on github.
I think my version of yeoman creates different folder structure.
What version are you using? mine is 1.1.2
ok the problem was that my version of yeoman was puting files into /ui/bower_components folder - all I need was to remove bower_components from paths in html templates and add it to yeoman.devDirs.
howerver I'm not sure if I solved it without breaking bower flow.
I think this is due to a change in yeoman angular generator. Earlier the bower_components were stored in ui/app/
directory so the plugin tries to fetch them from there.
You can either overwrite the setting to point to ui/
in your build file or update bower configuration.
Steps to update bower configuration:
bower update
. appPath
in bower.json@Shiti is it possible to change where plugin looks for bower_components? (Of course to change app/bower_components
to just bower_components
. Because when I am changing directory in .bowerrc
and additionally change Gruntfile.js
to match those paths I have a problem when doing production version - all my vendor js are empty (because the plugin, which concatenates all the js still looks in the wrong place, as I suppose).
@lsnpatryks you can add/update the following setting in application.conf instead
yeoman.devDirs=["ui/.tmp", "ui/app"]
after typing stp run I'm getting:
Loading "imagemin.js" tasks...ERROR
and browser is unable ro get angular.js file...