Coder Social home page Coder Social logo

Comments (20)

AskYous avatar AskYous commented on July 30, 2024 1

I received this issue as well just now. Though, the problem with mine was that I typed an incorrect URL:

index.html/#/ gives the error. index.html#/ solved it.

from angular-client-side-auth.

fnakstad avatar fnakstad commented on July 30, 2024

Hi! I can't seem to reproduce your problem. Are you using a clean build or are there local changes in your repo? Does this happen as soon as you open the web app in the browser? Any error messages in the server console?

from angular-client-side-auth.

geyang avatar geyang commented on July 30, 2024

Yeah, this is a typical problem when one of your resources defined in the
index.html file is missing.

If you check the console.log in your server terminal, you might be able to
figure out which one is missing. The missing one should have a 404 status
code, while all the other ones are either 200 or 304 (cached).

Ge

On Thu, Feb 27, 2014 at 7:49 PM, Frederik Nakstad
[email protected]:

Hi! I can't seem to reproduce your problem. Are you using a clean build or
are there local changes in your repo? Does this happen as soon as you open
the web app in the browser? Any error messages in the server console?


Reply to this email directly or view it on GitHubhttps://github.com//issues/67#issuecomment-36314294
.

from angular-client-side-auth.

geyang avatar geyang commented on July 30, 2024

Hey fnakstad,

Do you think this might be the underscore.js file? I remember that from the
message from the other pull-reuest from yesterday.

Ge

On Fri, Feb 28, 2014 at 3:08 AM, Ge Yang [email protected] wrote:

Yeah, this is a typical problem when one of your resources defined in the
index.html file is missing.

If you check the console.log in your server terminal, you might be able to
figure out which one is missing. The missing one should have a 404 status
code, while all the other ones are either 200 or 304 (cached).

Ge

On Thu, Feb 27, 2014 at 7:49 PM, Frederik Nakstad <
[email protected]> wrote:

Hi! I can't seem to reproduce your problem. Are you using a clean build
or are there local changes in your repo? Does this happen as soon as you
open the web app in the browser? Any error messages in the server console?


Reply to this email directly or view it on GitHubhttps://github.com//issues/67#issuecomment-36314294
.

from angular-client-side-auth.

renjith01 avatar renjith01 commented on July 30, 2024

I don't find anything in 404 status. I am able to reproduce the issue in a new installation. Not sure ii the issue is due to bower caches. I was able to install one instance successfully after I manually installed some components which was not fetched by npm install command yesterday like supertest, passport stub and karma-chai . But I am not able to reproduce the success scenario again. I had used npm set strict-ssl false also also npm install --unsafe-perm
logs in console
uncaught SyntaxError: Unexpected token < angular.min.js:1
Uncaught SyntaxError: Unexpected token < angular-cookies.min.js:1
Uncaught SyntaxError: Unexpected token < angular-ui-router.min.js:1
Uncaught ReferenceError: angular is not defined app.js:3
Uncaught ReferenceError: angular is not defined services.js:3
Uncaught ReferenceError: angular is not defined controllers.js:5
Uncaught ReferenceError: angular is not defined directives.js:3

from angular-client-side-auth.

geyang avatar geyang commented on July 30, 2024

I think your error messages suggest that your angular.min.js is missing,
angular-cookies is missing, angular-ui-router is missing.

Can you check if those are accessible in a browser?

Ge

On Fri, Feb 28, 2014 at 3:59 AM, renjith01 [email protected] wrote:

I don't find anything in 404 status. I am able to reproduce the issue in a
new installation. Not sure ii the issue is due to bower caches. I was able
to install one instance successfully after I manually installed some
components which was not fetched by npm install command yesterday like
supertest, passport stub and karma-chai . But I am not able to reproduce
the success scenario again. I had used npm set strict-ssl false also also
npm install --unsafe-perm
logs in console
uncaught SyntaxError: Unexpected token < angular.min.js:1
Uncaught SyntaxError: Unexpected token < angular-cookies.min.js:1
Uncaught SyntaxError: Unexpected token < angular-ui-router.min.js:1
Uncaught ReferenceError: angular is not defined app.js:3
Uncaught ReferenceError: angular is not defined services.js:3
Uncaught ReferenceError: angular is not defined controllers.js:5
Uncaught ReferenceError: angular is not defined directives.js:3


Reply to this email directly or view it on GitHubhttps://github.com//issues/67#issuecomment-36336203
.

from angular-client-side-auth.

fnakstad avatar fnakstad commented on July 30, 2024

Yea, my guess is that something goes wrong when fetching dependencies with bower. Could you check if the client/components folder exists and if it contains the packages defined in bower.json? If this is the case you can try running bower install to fetch them again.

from angular-client-side-auth.

jshemas avatar jshemas commented on July 30, 2024

I'm getting the same problem, but running bower install seemed to fix it.

from angular-client-side-auth.

fnakstad avatar fnakstad commented on July 30, 2024

Hmmm, I see... I tried adding bower install as a postinstall script to npm install, so that you only have to execute one command instead of two to install dependencies. However it seems many of you are having trouble with it... Could any of you guys experiencing this problem try executing grunt clean, and then npm install to see if the problem persists?

from angular-client-side-auth.

austinpray avatar austinpray commented on July 30, 2024

I tried adding bower install as a postinstall script to npm install

YOU CAN DO THAT????
༼ つ ◕_◕ ༽つ fnakstad ༼ つ ◕_◕ ༽つ

from angular-client-side-auth.

fnakstad avatar fnakstad commented on July 30, 2024

Well, now that people are reporting problems I'm not so sure anymore, but this works for me :)
Note that you need to add bower as a dependency in npm, so you can use a local install of it in case it's not installed globally.

from angular-client-side-auth.

fnakstad avatar fnakstad commented on July 30, 2024

Reverted to relying on global install of bower, so I'll go ahead and close this.

from angular-client-side-auth.

austinpray avatar austinpray commented on July 30, 2024

Global install is a common pattern anyway. No need for duplicate bower binaries

from angular-client-side-auth.

brunaobh avatar brunaobh commented on July 30, 2024

bower install.. fix the problem here

from angular-client-side-auth.

 avatar commented on July 30, 2024

I have been fighting this problem for a few hours and finally noticed something not mentioned previously (Here or at SO)...
In ASP.NET/MVC application this error (Unexpected token '<' ) can result from attempting to call
@Scripts.Render("...") on a non-existent bundle.

D'OH

from angular-client-side-auth.

garvitsharma avatar garvitsharma commented on July 30, 2024

I think your error messages suggest that your angular.min.js is missing,

from angular-client-side-auth.

divya12prakash avatar divya12prakash commented on July 30, 2024

I am using angular 4, but even after re-installing the dependencies through npm or other suggestions do not work for me

from angular-client-side-auth.

KathRains avatar KathRains commented on July 30, 2024

I had the same problem. And no any 404 errors. But it was actually missing file. It looked like files have been downloaded but actually, Node.js server downloaded some default page instead of them. It turned out I screwed up with paths. Why server exposed such behavior I don't know. As soon as I add "base" to the header everything was fixed.

from angular-client-side-auth.

Mujtaba81 avatar Mujtaba81 commented on July 30, 2024

I am getting this error both locally as well as while using cloud IDE c9.io

"Uncaught SyntaxError: Unexpected token <"

from angular-client-side-auth.

KathRains avatar KathRains commented on July 30, 2024

Mujtaba81, looks like you have a missing file too. I'm pretty sure if you look at your response in Chrome you will see the HTML of 404 error, not JavaScript, that's why you have this error.

from angular-client-side-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.