-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Grunt Build not finding js files. #627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm having a similar issue with 'grunt serve' not finding files that are in bower_components, namely ng-file-upload and papaparse |
@QuietOmen if you think it's an issue with line endings, do you have EditorConfig installed? Unfortunately I haven't seen this issue so I'm not much help otherwise. |
+1, I've been seeing this too. I've been using Webstorm 8, and just upgraded to Webstorm 9, which integrates EditorConfig. @JaKXz If you think it's line endings, what can be done to fix it? (other than disabling EditorConfig of course :D ) |
@JaKXz hmm I totally forgot about the EditorConfig file...so that means it most likely isn't the line endings....unless the editor config settings aren't applied when using grunt build. I'm still looking into this though as this problem has brought our team's productivity to a crawl whenever the index page gets updated as it causes all sorts of strange error before we realize we need to delete the index.html file and add the old one back in. When I use Beyond Compare the only difference I'm see between the files is still just the line ending though so this has me stumped. |
So for clarification here's my EditorConfig file:
And here's a comparison of the two files in HEX. The one on the left is what I use to replace the index.html file I receive whenever I do a git pull: As you can see the only difference I notice is the 0D line endings. So do I need to change my EditorConfig file to stop this from happening? |
Apologies for the late response @QuietOmen, have you had any luck? This article about line endings from GitHub might help - otherwise I'm really not sure, sorry. |
That's OK, this time of year is busy for everyone. I removed the injector tags for now instead of addressing the issue, as I have other items that have a higher priority. I'll read up on the article that you posted when I get a second, and post a comment if I figure anything else out about the issue. |
probably remove the base href="/" from your index.html |
OK I'm not sure what's going on with grunt build, but it doesn't seem to find the javascript files when I run grunt build. This happens when I update the index file...often I will move to a different computer and do a pull from my git stash repo and it will start to fail. I don't understand the error as I can fix it by replacing the index.html file with the original one created from
yo angular-fullstack
and then adding back the html code I want. It seems to occur when I alter the build:js sections or anything below the Google analytics.So for example the program can work perfectly fine on my laptop so I'll push to my git repo. Then I will move onto my desktop and pull. It won't show there being anything different with my index.html page but I'll get the following error in the browser's console:
Going back to my laptop and comparing it to the version on my repository, it doesn't show any difference. I'm wondering if it has to do with line endings. I'm getting really tired of having to recopy the original index.html code so I'd greatly appreciate any insight into this. Oh here's my html page:
The text was updated successfully, but these errors were encountered: