Closed odtcviktorlivakivskyi closed 6 months ago
I also observed same issue with 2.14.1
Also on the "e-commerce" template
Experiencing the same issue with the website template. Fixed the react and react-dom version to 18.2.0. That fixed the issue.
I see this error on console. this new error. Just follow
npx create-payload-app@latest my-project -t website
I created a brand new project and 2.14.2 admin console works file.
The brand new project works fine. But when I upgrade my existing app, I am getting this error
Here are my dependencies
"dependencies": { "@payloadcms/bundler-webpack": "^1.0.0", "@payloadcms/db-postgres": "^0.x", "@payloadcms/plugin-cloud": "^3.0.0", "@payloadcms/plugin-nested-docs": "^1.0.8", "@payloadcms/plugin-redirects": "^1.0.0", "@payloadcms/plugin-seo": "^1.0.10", "@payloadcms/richtext-slate": "^1.0.0", "cross-env": "^7.0.3", "dotenv": "^8.2.0", "escape-html": "^1.0.3", "express": "^4.19.2", "next": "13.5.2", "payload-admin-bar": "^1.0.6", "qs": "6.11.2", "react": "^18.2.0", "react-dom": "^18.2.0", "react-hook-form": "7.45.4", "react-router-dom": "5.3.4", "@payloadcms/plugin-cloud-storage": "^1.1.2", "@payloadcms/plugin-stripe": "^0.0.19", "@stripe/react-stripe-js": "^1.16.3", "@stripe/stripe-js": "^1.46.0", "fast-xml-parser": "^4.3.5", "jsonwebtoken": "^9.0.2", "nodemailer-sendgrid": "^1.0.3", "payload": "2.14.2", "stream": "^0.0.2", "stripe": "^10.2.0", "util": "^0.12.5" }, "devDependencies": { "@next/eslint-plugin-next": "^13.1.6", "@payloadcms/eslint-config": "^0.0.1", "@swc/core": "1.3.76", "@types/escape-html": "^1.0.2", "@types/express": "^4.17.9", "@types/node": "18.11.3", "@types/qs": "^6.9.8", "@types/react": "18.0.21", "@typescript-eslint/eslint-plugin": "^5.51.0", "@typescript-eslint/parser": "^5.51.0", "copyfiles": "^2.4.1", "eslint": "^8.19.0", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-filenames": "^1.3.2", "eslint-plugin-import": "2.25.4", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-simple-import-sort": "^10.0.0", "nodemon": "^2.0.6", "prettier": "^2.7.1", "slate": "0.91.4", "ts-node": "10.9.1", "typescript": "^4.8.4" } }
we have dependabot in place for our project and even the latest 2.14.2
version triggers the above useContext
error.
Now I added the react
and react-dom
resolutions to 18.2.0
and works as expected.
I'm experiencing the same issue with react
and react-dom
deps at 18.2.0
.
Any workarounds ?
Please correct this issue before marking it as closed.
Not able to recreate this as is. We can continue with your issues on #6313
I've tried everything I can find and still cannot resolve this.
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
Link to reproduction
No response
Describe the Bug
I've created a fresh installation using the website template:
npx create-payload-app@latest my-project -t website
Then switched to the "my-project" folder and started Docker containers, after that successfully seeded the MongoDB inside of container.
Frontend is working without issues under http://localhost:3000/
But as soon as I try to open an admin panel under http://localhost:3000/admin - the page appears blank and following errors are shown in console:
I've tried to update packages by running
yarn upgrade
- it didn't help. Also tried to run the app without Docker, but directly from my machine - same result, frontend works, but admin not. Found this ticket https://github.com/payloadcms/payload/issues/707, addedto the package.json and run
yarn upgrade
again, but result was unfortunately the same.Do you have an idea how to fix the issue?
To Reproduce
Fresh installation:
npx create-payload-app@latest my-project -t website
andyarn seed
Payload Version
2.14.1
Adapters and Plugins
No response