Comments (20)
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.
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.
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.
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.
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.
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.
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.
I'm getting the same problem, but running bower install
seemed to fix it.
from angular-client-side-auth.
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.
I tried adding bower install as a postinstall script to npm install
YOU CAN DO THAT????
༼ つ ◕_◕ ༽つ fnakstad ༼ つ ◕_◕ ༽つ
from angular-client-side-auth.
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.
Reverted to relying on global install of bower, so I'll go ahead and close this.
from angular-client-side-auth.
Global install is a common pattern anyway. No need for duplicate bower binaries
from angular-client-side-auth.
bower install.. fix the problem here
from angular-client-side-auth.
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.
I think your error messages suggest that your angular.min.js is missing,
from angular-client-side-auth.
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.
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.
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.
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)
- Replace $cookieStore to $cookies HOT 1
- I am new to npm and angular, I tried on windows 8.1, i was able to complete npm install, but npm start gave error HOT 1
- Server depends on a file located in the client directory HOT 1
- book mark HOT 2
- npm install throwing me to include npm-debug.log
- react js issue
- npm run build error HOT 3
- Can't start the "npm run dev" on my ubuntu 17.10 Laravel 5.5
- I am new with Node and it gives me error whenever i run npm start command.Can anyone please help me....
- i have error when i write npm start
- I'm new with Node
- Unresolved variable or type routingConfig HOT 2
- Google Logout HOT 2
- How about using JWT instead of cookies HOT 5
- "data.access" in toState is always false HOT 2
- Integration with Django HOT 3
- Social sites login
- Question about passing the user to HTTP GET * HOT 1
- Use ng-if instead CSS HOT 5
- any sample with asp.net mvc HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-client-side-auth.