sahat / megaboilerplate

Handcrafted starter projects, optimized for simplicity and ease of use.
MIT License
3.83k stars 257 forks source link

Uncaught SyntaxError: Unexpected token u in JSON at position 0 #144

Open batusy opened 8 years ago

batusy commented 8 years ago

In Crome the Home does not show anything.

I have not changed anything. In the first access to the Home, I saw the default content, but after browsing the pages of example, everything disappeared.

In the console Chrome browser, displays the following error:

Uncaught SyntaxError: Unexpected token u in JSON at position 0 (anonymous function) @ application.js:1 a @ angular.js:1 (anonymous function) @ angular.js:1 o @ angular.js:1 it @ angular.js:1s @ angular.js:1 se @ angular.js:1 ae @ angular.js:1 (anonymous function) @ angular.js:6 c @ jquery.js:2 fireWith @ jquery.js:2 ready @ jquery.js:2 s @ jquery.js:1

In Explorer or Firefox, the Home is ok

In CROME: If I delete the CACHE all reappears.!!!!!

I think the problem occurs after attempting to modify your user account.

What I can do to prevent this from happening again?

Att.

sahat commented 8 years ago

@batusy What are your boilerplate options? I will try to reproduce it on my computer.

batusy commented 8 years ago

This is the configuration (Windows 10):

Configuration

batusy commented 8 years ago

I saw a Error in saving profile whem press "Update Profile" in Crome

http://localhost:3000/account

PUT http://localhost:3000/account 400 (Bad Request) angular.js:2 (anonymous function) @ angular.js:2 m @ angular.js:2 l @ angular.js:2 s @ angular.js:3 (anonymous function) @ angular.js:3 $eval @ angular.js:3 $digest @ angular.js:3 $apply @ angular.js:3 (anonymous function) @ angular.js:5 dispatch @ jquery.js:2 m.handle @ jquery.js:2

batusy commented 8 years ago

C:\JACS\WampServer2.5\www\NODEJS\megaboilerplate2>npm install npm WARN install Couldn't install optional dependency: Unsupported

cool-sound@1.0.0 postinstall C:\JACS\WampServer2.5\www\NODEJS\megaboilerplate2 npm run build:production

cool-sound@1.0.0 build:production C:\JACS\WampServer2.5\www\NODEJS\megaboilerplate2 gulp build --production

[19:24:18] Using gulpfile C:\JACS\WampServer2.5\www\NODEJS\megaboilerplate2\gulpfile.js [19:24:18] Starting 'sass'... [19:24:18] Starting 'angular'... [19:24:18] Starting 'vendor'... [19:24:18] Starting 'templates'... [19:24:19] Finished 'angular' after 1.04 s [19:24:19] Finished 'templates' after 1.03 s [19:24:22] Finished 'sass' after 4.05 s [19:24:23] Finished 'vendor' after 5.19 s [19:24:23] Starting 'build'... [19:24:23] Finished 'build' after 23 μs npm WARN EPACKAGEJSON cool-sound@1.0.0 No repository field. npm WARN EPACKAGEJSON cool-sound@1.0.0 No license field.