I have an angular2 and play app from here. Everything works fine when I run it in dev mode with sbt run. However I would like to test the production, so I do sbt dist, load the app and get the following errors in console.
http://localhost:9000/assets/lib/rxjs/rx.js Failed to load resource: the server responded with a status of 404 (Not Found)
zone.min.js:1 Error: (SystemJS) Error: XHR error (404 Not Found) loading http://localhost:9000/assets/lib/rxjs/rx.js(…)e.invoke # zone.min.js:1
However when I click on the link I see that a file has been loaded.
Here is the code for system js configuration I am using. Does anyone hava an idea on how to fix this?
The problem was deprecated imports.
change
import { Observable } from "rxjs/rx"
to
import { Observable } from "rxjs/Observable"
in ts source files.
Related
I made an ecommerce webpage, the code seems fine but when I deployed itin my local host and in GitHub it shows this error:
DevTools failed to load source map: Could not load content for https://andrealb88.github.io/rewards-store-andrea-lopez-bravo/static/js/main.51faf61f.chunk.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
I new in this and I read I need to fix it in devtools, should I need to install something?
Thank you!
This warning is probably nothing to worry about. If you don't want to see it, you can disable it: Error message "DevTools failed to load SourceMap: Could not load content for chrome-extension://..."
I run into this as well. [Here][1] I found the following:
...use the full link
https://cdn.jsdelivr.net/npm/hls.js#0.11.0/dist/hls.min.js the source
map loads correctly.
This must be a bug in the npm package.
[1]: https://github.com/jsdelivr/jsdelivr/issues/18084
I have been working on my portfolio website for a little over a month now and I was ready to deploy. I am using vuejs but I am not sure what is causing the problem. also this is my first time using github pages so I am not sure what is the root cause of this problem. It shows in github that my site is deployed to https://maxwell-clark.github.io/ but it is returning the following error. "Failed to load resource: the server responded with a status of 404 ()"
I am not sure what exactly is the problem. I have read about adding an 404.html file that is an copy of my index.html file
I've downloaded both JavaScript and TypeScript kit and followed Aurelia instructions for routing from the getting started page
The JavaScript example works fine but the TypeScript shows the following error on the console when the app is run:
Failed to load resource: the server responded with a status of 404 (Not Found)
ERROR [app-router] Error: XHR error (404 Not Found) loading http://localhost:8080/welcome.js
ERROR [app-router] Router navigation failed, and no previous location could be restored.
Does anyone have experienced the same problem?
Rob Eisenberg posted an answer to my issue I put up on github.
https://github.com/aurelia/beginner-kits/issues/12
He said to make sure the moduleId of the router looks like this ./welcome.
I'm trying to run a sample app by using cordovas camera plugin and I got an error, when trying to debug on chromes emulator
Failed to load resource: the server responded with a status of 404 (Not Found)
(http://localhost:8000/android/www/css/images/ajax-loader.gif)
The correct path is css/images/ajax-loader.gif
You are debuging your application in chrome emulator. But you are using the ajax-loader.gif placed in platforms/andoroid/www/css/images change the location of the loader to www folder in the root folder.
css/images/ajax-loader.gif.
In chrome emulator, the files in www folder in the root of project is taken.
Change the location of loader and check whether the problem is solved or not
I have been developing a small app with Sinatra. Locally it works fine but when I deploy it Heroku my JavaScript paths seem to break and I have no idea what is causing this.
My directory set up is I have a "assets" folder in the root of my application with separated folders for both scripts and styles. The scripts folder has a few subdirectories. I have set my public folder in Sinatra using:
set :public_folder, __DIR__ + '/assets'
My styles work correctly and I am drawing a blank on what the problem is. Also worth noting I am using requirejs to load my JavaScript.
Here is the output from the console:
GET http://evening-hamlet-5644.herokuapp.com/scripts/utils/libraries/jquery.js 404 (Not Found) require.min.js:1884
GET http://evening-hamlet-5644.herokuapp.com/scripts/utils/templating/hogan.js 404 (Not Found) require.min.js:1884
2
Uncaught Error: Script error
http://requirejs.org/docs/errors.html#scripterror require.min.js:194
GET http://evening-hamlet-5644.herokuapp.com/scripts/utils/libraries/lodash.js 404 (Not Found) require.min.js:1884
Uncaught Error: Script error
http://requirejs.org/docs/errors.html#scripterror require.min.js:194
GET http://evening-hamlet-5644.herokuapp.com/scripts/utils/libraries/pusher.js 404 (Not Found) require.min.js:1884
Uncaught Error: Script error
http://requirejs.org/docs/errors.html#scripterror
Any help or a kick in the right direction would be great.
Thanks
You could run a console with the heroku toolbelt (something like heroku run bash --app <your app name>) and verify if you have your JS files up.
Greetings!
I'm not a Sinatra hacker, but I don't find any DIR in their docs. Try setting DIR to
File.dirname(__FILE__), which I do see in their docs
It would help if you posted the Sinatra code that renders the links to the javascript files (ie. haml views etc).
However, without the code, I have a feeling it may be because you should be using Sinatra's url helper. If that's not it, and you post your code, I'll take another look.