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.

GET http://127.0.0.1:1880/uibuilder/vendor/jquery/dist/jquery.min.js net::ERR_ABORTED 404 (Not Found)

See original GitHub issue
Software Version
Node.JS v8.12.0
npm 6.4.1
Node-RED v0.19.5
uibuilder node 1.0.8
uibuilderFE 1.0.8
OS MacOS 10.13.6
Browser Chrome 71

How is Node-RED installed? Where is uibuilder installed?

Installed as an npm package, started through an npm script.

userDir set to ./.node-red (by using settings.js) of my working directory to have a complete standalone installation. Instead of running it globally.

Vendor paths are set correctly when starting node-red:

info: UIbuilder: Adding master vendor path url=/uibuilder/vendor/normalize.css, path=/Users/kevin/git/home2/node_modules/normalize.css
info: UIbuilder: Adding master vendor path url=/uibuilder/vendor/jquery, path=/Users/kevin/git/home2/node_modules/jquery/dist

localhost:1880/uibuilder/ also routes correctly to the index.html

However, in the template index.html the line reads dist/jquery.min.js causing a 404. When removing the dist from the path, it works as expected.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
TotallyInformationcommented, Mar 4, 2019

:sigh: as with so many things, in trying to fix a different issue, I worked out what causes this one.

The problem is that if uibuilder is accessing a package installed with uibuilder, that package is in a different place, not <userDir>/node_modules. In order to try and work out where it is so that I can add a static server path to it, there are 2 different lookups. The first, main lookup finds things installed in <userDir>/node_modules, e.g. if you installed them as a user. The second finds things installed anywhere (uses require.resolve(packageName)). It is this 2nd one that gives odd results. It finds the location of the script defined in package.json as “main” but this may not be where the front-end scripts are.

So, if you install jquery yourself, that’s one path but if you use the version installed by uibuilder, that is a different one. That isn’t always going to work as it may give inconsistent results.

So in v2, I will be using a different strategy and my own packageFind function. This is implemented now in the v2 branch if you want to test it.

1reaction
TotallyInformationcommented, Dec 30, 2018

OK, I worked out how to do tags and release from tags. I’ve pushed v1.0.10 and I’ll try to remember to do them in the future as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

net::ERR_ABORTED 404 (Not Found) Javascript
I'm new to javascript but for some reason I have this Error GET http://127.0.0.1:5500/src/paddle net::ERR_ABORTED 404 (Not Found) my code ...
Read more >
Error Failed to load resource the server responded with a ...
Error Failed to load resource the server responded with a status of 404 Not Found.
Read more >
net: :ERR_ABORTED 404 (Not Found) || Js errors - YouTube
In this video i have solved net: : ERR_ABORTED 404 ( Not Found ) errors in javascript.Please guys help me to get 1k...
Read more >
Getting a 404 from jquery-3.1.0.min.js in zsfeedbackinit.js ...
This error implies to me that zsfeedbackinit.js is trying to load jquery using the current URL as a base and not with the...
Read more >
Why do I get 404 on javascript files that are present my ...
but if you expand the folder all these files are present int he root directory. Not sure why I'm getting 404 here. It...
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