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

TypeError: e.keys().some is not a function NextJS 10 #9466

Open
jj-matos opened this issue Feb 10, 2025 · 0 comments
Open

TypeError: e.keys().some is not a function NextJS 10 #9466

jj-matos opened this issue Feb 10, 2025 · 0 comments

Comments

@jj-matos
Copy link

jj-matos commented Feb 10, 2025

When i build and start keystone on my local pc everything works fine. Even in a production environment (yarn buil, yarn start).
When i deploy to production, when opening a list view, i get this error on the console, and can't see the list:

"TypeError: e.keys().some is not a function
NextJS 10"

On screen it shows "Something went wrong. please reload"

The strange thing is the error only occurs when it is in Firefox and production server. Everything is ok, when i access the lists in Firefox on my local pc, even as a production environment.

Also the list view shows without error, if the list has no records. Once i create an item, the error appears.

Node versions, and next packages are the same in both local and production server. I also copied the exact yarn.lock file from local to production, to install form it, and the same occurs:

node: v18.19.0
yarn list v1.22.22
├─ @next/[email protected]
├─ @next/[email protected]
├─ @next/[email protected]
├─ @next/[email protected]
├─ @next/[email protected]
├─ @next/[email protected]
├─ @next/[email protected]
├─ @next/[email protected]
├─ @next/[email protected]
├─ @next/[email protected]
└─ [email protected]

My package json:
{
"version": "1.0.3",
"private": true,
"scripts": {
"dev": "nodemon --exec keystone dev",
"start": "keystone start",
"build": "keystone build",
"postinstall": "keystone build --no-ui --frozen && patch-package",
"lint": "eslint ."
},
"dependencies": {
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@graphql-tools/schema": "^10.0.4",
"@keystone-6/auth": "^8.0.0",
"@keystone-6/core": "^6.3.0",
"@keystone-6/fields-document": "^9.1.0",
"dotenv": "^16.4.5",
"axios": "^1.7.2",
"bytes": "^3.1.2",
"fluent-ffmpeg": "^2.1.3",
"graphql-subscriptions": "^2.0.0",
"graphql-ws": "^5.16.0",
"invariant": "^2.2.4",
"moment": "^2.30.1",
"node-fetch": "^3.3.2",
"patch-package": "^8.0.0",
"pcloud-sdk-js": "^2.0.0",
"prompt": "^1.3.0",
"react-datepicker": "^4.25.0",
"styled-components": "^6.1.8",
"typescript": "^4.9.5",
"ws": "^8.18.0"
},
"devDependencies": {
"@types/bytes": "^3.1.1",
"@types/react-datepicker": "^4.19.4",
"nodemon": "^3.0.2",
"ts-node": "^10.9.2"
}
}

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

1 participant