-
Notifications
You must be signed in to change notification settings - Fork 12k
Angular 2 CLI ng build inline.js,styles.bundle.js and main.bundle.js 404 error #2810
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
@prasadrajacse You need to paste all the files present in the dist folder directly under the webapps folder where you must have pasted the dist folder currently. Try this, it will work. :) |
I am having some custom css files referred in index.html file and after build there are missing in the dist folder. |
There is style.css (master css file) which applies to the whole project. You can add your custom styles to that file. |
Also, when you are trying to debug your app I recommend you use If you are deploying to a subfolder within a server, you might need to change the |
I am running my app in linux server.I understand, I just have to copy all dist folder files into my project path in the server
|
@iamsarav I am getting the same error please let me know if you have found the solution |
I had the same problem,but I fixed it. |
@JesusMuller could you have a look on it https://stackoverflow.com/questions/44470995/angular-2-cli-how-to-use-dist-folder-files-created-by-angular-cli-ng-build |
I just replaced the base in index.html with this now it works |
@JesusMuller Thanks, that does helpful. |
Okay Recently I fetched this problem I have very simple solution for solve this Issue , follow these steps: |
i just replace my base tag in index.html like below |
@Sachin124 thanks man, it worked. |
@Sachin124 thank you! I had been fighting this for 4 hours! Your suggestion fixed it for me. |
In my case, I had to comment out Note*: I'm using Angular CLI version 1.6.5 |
Follow steps:
Use this .htaccess
|
I just go to .angular-cli.json an change and works perfectly |
@yarlenvas Just a quick note that a deploy URL of |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
Repro steps.
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/inline.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/inline.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:63342/styles.bundle.js
Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:63342/main.bundle.js
index.html and above files are under same root.
Please let me know if I am going wrong.
Thanks and Regards,
Durga Prasad Telu.
The text was updated successfully, but these errors were encountered: