Closed awaer closed 9 years ago
It seems this issue was caused by the presence of jQuery in app/scripts/vendor
while running ember-cli-migrator. Removing that file prevented the error and allowed the migrator script to terminate successfully. I was able to trace it by adding a console.log
to /usr/local/lib/node_modules/ember-cli-migrator/lib/ember-migrator.js:160
before the call to self.processFile(self.splitFiles[key])
How come the migrator was running on app/scripts/vendor
, usually you just run it against the ember code
@igorT Is there a way to exclude? Our Ember application files/folders are in app/scripts
, which also contains vendor scripts in app/scripts/vendor
. The migrator seems to run over everything contained in the source directory. I don't see any way to avoid this.
Usually people put libraries outside their ember source code, one level deeper
For what it's worth, I ran into the same issue. For it my paths looked like 'app/js/libs/' and libs contained jquery, ember, and a few other things.
I'm pretty sure that's the layout the ember website encouraged me to use back when I first setup my project, which was around ember-1.0.4 or so.
Also, I had to have it ignore the .git directory, which I found odd since it has special support for git.
After files are moved/copied, I am seeing these errors output to console and it is unclear what steps need to be taken in order to resolve the problem.