-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Install react-admin 3.10.1 but get ra-core latest 3.13.0 #5979
Comments
Hi, and thanks for your issue. I don't understand where your bug occurs. If you're importing TestContext in your code, then the 3.13 release notes explain what you need to do. If the bug occurs without you importing TestContext manually, can you please link to a CodeSandbox reproducing it? |
Also, you can lock the 'ra-core' version to 3.10.1 using |
You probably don't need |
Not a complete reproduction, but hopefully more information to help clarify the issue. I had a working react-admin a week ago, took a holiday and came back to find Docker spinning up the admin (on dev):
This was the package.json file:
I then bumped both react-admin and ra-core to 3.13.1 and re-built the project and it works again. So issue solved - but it's happened a few times that, without changing anything in package.json, the admin breaks. Previously when deploying a working dev project to stage (stage broke, then dev broke afterwards when I re-built dev). Fortunately not yet when deploying to prod. I realise that the description above is not a specific issue with a specific version. And perhaps it's also frustrating for you when people who aren't so familiar with NPM versioning settings are reporting what seems like a basic "ask Stack Overflow" question. But it's a friction point for myself (and presumably others) that the project can fall over when re-building from an unchanged package.json, even with locked version numbers. And that doesn't happen with any other packages that I use. I hope I've explained that clearly. It's not necessarily a bug with the package, but (I guess) an issue that arises from having a fast-moving project where users aren't using the package.json file as you intend. It could just be that the installation documentation can have a section about versioning and that would help us understand the correct way to set up our package.json files. |
The problem is that the dependencies with internal packages ( "dependencies": {
"@material-ui/core": "^4.11.2",
"@material-ui/icons": "^4.11.2",
"@material-ui/styles": "^4.11.2",
"connected-react-router": "^6.5.2",
"final-form": "^4.20.0",
"final-form-arrays": "^3.0.1",
"ra-core": "^3.13.1",
"ra-i18n-polyglot": "^3.13.1",
"ra-language-english": "^3.13.1",
"ra-ui-materialui": "^3.13.1",
"react-final-form": "^6.3.3",
"react-final-form-arrays": "^3.1.1",
"react-redux": "^7.1.0",
"react-router": "^5.1.0",
"react-router-dom": "^5.1.0",
"redux": "^3.7.2 || ^4.0.3",
"redux-saga": "^1.0.0"
} This is not something we can fix for past version, but we should definitely switch to Marking this as a bug. |
Thanks for the quick response guys 🎉💃❤️ |
What you were expecting:
Has no exported member 'TestContext'. Did you mean 'ListContext'
What happened instead:
Steps to reproduce:
Package.json
"react-admin": "3.10.1"
Related code:
Other information:
Environment
The text was updated successfully, but these errors were encountered: