question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

scripts.bundle.js net::ERR_ABORTED

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Angular CLI: 1.5.0 Node: 8.8.0 OS: darwin x64 Angular: 5.0.0 … animations, common, compiler, compiler-cli, core, forms … http, platform-browser, platform-browser-dynamic … platform-server, router

@angular/cli: 1.5.0 @angular/language-service: 4.4.4 @angular-devkit/build-optimizer: 0.0.32 @angular-devkit/core: 0.0.20 @angular-devkit/schematics: 0.0.35 @ngtools/json-schema: 1.1.0 @ngtools/webpack: 1.8.0 @schematics/angular: 0.1.0 typescript: 2.4.2 webpack: 3.8.1

Repro steps.

When I run 'ng serve --aot` it gives me this error: GET http://localhost:4200/scripts.bundle.js net::ERR_ABORTED

and because I have included jquery it has problem referencing it. ERROR ReferenceError: $ is not defined

I checked Network on Dev tools and scripts.bundle.js is NOT FOUND

The log given by the failure.

Desired functionality.

Today I upgraded the project to angular@5 and angular-cli@1.5 . Prior to this, it did not happen.

Mention any other details that might be useful.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:38
  • Comments:40 (2 by maintainers)

github_iconTop GitHub Comments

32reactions
ameagolcommented, Nov 28, 2017

This happens when you use Electron and change index.html <base href="/"> to <base href="./">

Just add useHash:true in your route module

@NgModule({
  imports: [
    BrowserModule,
    FormsModule,
    RouterModule.forRoot(routes, { useHash: true })  // .../#/your-route/
  ]...
25reactions
superdiozcommented, Nov 15, 2017

I got the same error updating angular 4 to 5 and cli 1.4.7 to 1.5 I fixed it running: npm cache verify I hope that will solve your problem too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Encountering a net::ERR_ABORTED error and 404 error ...
Courses/bundle.js 404 makes me think youre trying to access a directory that doesn't exist.
Read more >
GET http://localhost:3000/bundle.js net::ERR_ABORTED 404 ...
js is being output by webpack to dist/bundle.js , and again that's not likely on the relative path position to the server root...
Read more >
net::ERR_ABORTED 404 (Not Found) - MSDN
i have included all css in bundle config file and rendered in the layout view. bundle config file public class BundleConfig { //...
Read more >
JS file gets a net ERR ABORTED 404 Not Found - Edureka
I am trying to separate my <script> inside my HTML file to an external js file. This is my very simple folder structure:...
Read more >
Small Bundles, Fast Pages: What To Do With Too Much ...
Analyze and fix JavaScript bundle performance issues with ... and minifying script resources, though reducing the size of a bundle is the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found