Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin UI: packages.js:165 Uncaught SyntaxError: Unexpected string #3642

Closed
joeinnes opened this issue Oct 26, 2016 · 5 comments
Closed

Admin UI: packages.js:165 Uncaught SyntaxError: Unexpected string #3642

joeinnes opened this issue Oct 26, 2016 · 5 comments

Comments

@joeinnes
Copy link

Steps to reproduce the behavior

Attempt to access the signin page for the admin backend

Expected behavior

Signin page loads, I can log in

Actual behavior

Sign in page fails to load. There seems to be some kind of problem in the 'packages.js' file. Then, react fails to load, which prevents the page from ever displaying. I guess the reason react fails to load is because of the problem in the packages file. The line in question is 165.

e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)},e.prototype.getMonitor=function(){return this.monitor},e.prototype.getBackend=function(){return this.backend},e.prototype.getRegistry=function(){return this.registry},e.prototype.getActions=function(){function e(e){return function(){var r=e.apply(t,arguments)"undefined"!=typeof r&&n(r)}}var t=this,n=this.store.dispatch

In particular, it's the 'undefined' that it doesn't like.

System Details

I'm on OSX, issue occurring in Chrome Version 54.0.2840.71 (64-bit) & Safari.

What I've tried

  • I tried with a couple of browsers
  • I deleted the node_modules directory and reran npm install to clean install the version I of Keystone I was on
  • I changed the version of keystone up to '4.0.0-beta.3'
  • I changed the version of keystone down to '4.0.0-beta.1'

You should be able to see the problem here: https://done.joeinn.es/keystone/signin

@conrad-vanl
Copy link

I'm getting this issue as well, what's strange is I'm not getting the issue locally, just on the deployed app on heroku.

@jstockwin
Copy link
Contributor

@joeinnes This seems to be working fine now? Did you manage to fix it? What was the issue?

@joeinnes
Copy link
Author

joeinnes commented Dec 15, 2016 via email

@jstockwin
Copy link
Contributor

Alright, well as long as it's working I'll close this.

@jjhesk
Copy link

jjhesk commented Feb 7, 2017

looks like i have the same issue with this 4.0.0-beta5 deploy @jstockwin @joeinnes @conrad-vanl on heroku. the issue doesnt appear on local deploy from testing server Ubuntu-16.4.10 tho. currently is not working.. http://bms.heskeyo.com/admiral/signin

Uncaught SyntaxError: Unexpected string
..

s)"undefined"!=typeof r&&n(r)}}var t=this,n=this.store.dispatch

Uncaught Error: Cannot find module 'qs'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants