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

can't get /admin in production - admin-ui-app #134

Open
asheghi opened this issue Feb 23, 2021 · 6 comments
Open

can't get /admin in production - admin-ui-app #134

asheghi opened this issue Feb 23, 2021 · 6 comments

Comments

@asheghi
Copy link

asheghi commented Feb 23, 2021

Bug report

In development mode, everything is fine, but after signing in in production, i receive the "cannot get /admin" error message from express.

Cookies and sessions work as well.

from the source code i guess that the build script is supposed to compile the admin-ui client in the /dist/admin/secure directory, but after successful build, only /dist/admin/public directory is created.

Screenshots

Screenshot from 2021-02-23 21-24-43

System information

  • OS: Ubuntu 20.04
  • Node Version: 12.20.2
  • keystonejs/app-admin-ui : 7.4.1
  • keystonejs/keystone : 19.2.0

and my build script is:
"build": "cross-env NODE_ENV=production babel-node ./node_modules/.bin/keystone build"

@asheghi asheghi changed the title can't get /admin in production can't get /admin in production - admin-ui-app Feb 23, 2021
@keviiin38
Copy link

Same issue after upgrade from @keystonejs/keystone 17.1.0 to @keystonejs/keystone 19.2.0

@mkleins
Copy link

mkleins commented Feb 25, 2021

I have the same issue with the @keystonejs/keystone 19.3.0

@Yair-Ohana
Copy link

Yair-Ohana commented Feb 25, 2021

Same issue with "17.1.2",
maybe it is related to the react-day-picker? (saw an error that mentioned it)

@asheghi
Copy link
Author

asheghi commented Feb 27, 2021

updated keystone packages to the latest version and problem is fixed now.

    "@keystonejs/adapter-mongoose": "^11.2.0",
    "@keystonejs/app-admin-ui": "^7.5.0",
    "@keystonejs/app-graphql": "^6.3.0",
    "@keystonejs/auth-password": "^6.1.0",
    "@keystonejs/fields": "^22.1.0",
    "@keystonejs/fields-wysiwyg-tinymce": "^5.4.0",
    "@keystonejs/file-adapters": "^7.1.0",
    "@keystonejs/keystone": "^19.3.0",
    "@keystonejs/list-plugins": "^8.1.0",
    "@keystonejs/server-side-graphql-client": "^2.1.0",

but react-day-picker style issue is not fixed yet.

@savager
Copy link

savager commented Feb 28, 2021

My build on gitlab failed, and this was the cause. @keystone/fields has upgraded react-day-picker to beta which has an engine requirement of node 14. I suggest reverting that because it's a breaking change.

@savager
Copy link

savager commented Feb 28, 2021

By the way, for a quick fix, since I had to have this working tonight I just modified my dockerfile to do

yarn install --ignore-engines

to avoid the error. I wasn't ready to update every keystone dependency.

@timleslie timleslie transferred this issue from keystonejs/keystone May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants