-
Notifications
You must be signed in to change notification settings - Fork 8
build crash - Error in parsing "my.controller.js", Cannot read property 'value' of null #12
Comments
I look at it right now |
I think it would help, if you post the content of your |
Yup, I will need the content of the file of at least the beginning. As far a I can see the difference between 1.1.5 and 1.3.0 is that I merged some pull request which improve the inject part and I update dependencies. Just to be sure can you also copy/paste me the result of grunt with --debug option ? |
Here we go, the beginning of first file
|
I've tried to keep coding style with johnpapa's style guide |
Seems good to me... Huummm |
Same error here, from ~150 files random 15 have not been included with the same message: |
|
I think errors tirgger on big files only |
Hmm, I don't think so - at least not in my case. One of the files that hasn't been parsed was only 35 lines long. |
As I was thinking, the problem come from the part where dependencies are computed by ng-dependencies. I use the standard way to read file with grunt... I didn't touch this part from the beginning I can't explain why it works on 1.2.0 but not on 1.3.0. @anteq Johnpapa's style too ? |
Are all your files UTF-8 encoded ? |
yes, all are UTF-8 |
It could be https://github.com/klei/ng-dependencies/pull/15/files where they start using If so, a downgrade to Just an uneducated guess. |
Should be fixed in ng-dependencies 0.8.1 |
I can confirm fix resolved the issue |
after update to newest version 1.3.0
grunt config:
run console:
result on browser console:
Uncaught Error: [$injector:modulerr] Failed to instantiate module appMyModule due to: (...)
after rollback to 1.1.5 everything works fine
The text was updated successfully, but these errors were encountered: