This is a migrated thread and some comments may be shown as answers.

failed to load cordova_plugins.js

2 Answers 477 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
barsh
Top achievements
Rank 1
barsh asked on 15 May 2015, 05:04 PM

One of my projects, can no longer load cordova_plugins.js.

After running the console command:

 

appbuilder simulate

 

and then pressing F12 in the device simulator, I'm seeing this error:

 

Failed to load resource: the server responded with a status of 404 (Not Found)

 

Why is it trying to load cordova_plugins.js from relative to index.html when it should be trying to load:

 

 

 

2 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 20 May 2015, 03:44 PM
Hi Michal,

Are you still having this issue? If you are seeing it in one particular project, we would need to examine that project or we would need a sample app where we can replicate the behavior. Also, can you provide us with more details on the OS of your machine.

If you see this error while working on multiple projects, I would recommend that you clear the AppBuilder Cache under ~/.local/share/Telerik/BlackDragon/.appbuilder-cli/.

As we just released an update for all AppBuilder clients, can you please update yours and check to see if the issue is still present. Let me know how that goes.

Regards,
Tina Stancheva
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
barsh
Top achievements
Rank 1
answered on 20 May 2015, 06:18 PM
I found some JavaScript in the framework I'm using that was making the url for the current window location "pretty" by appeding a '/' to the end of it.  This occurred before cordova.js attempts to insert cordova_plugins.js into the head. This caused cordova.js to insert the url to cordova_plugins.js incorrectly.  Removing the code that "pretties" the url solved the problems.  It's worth noting that urls are case sensitive (at least in iOS) so of someone else is having a similar problem this could be the cause.
Tags
General Discussions
Asked by
barsh
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
barsh
Top achievements
Rank 1
Share this question
or