-
Notifications
You must be signed in to change notification settings - Fork 68
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
[IMP][WIP] Migrate Strapi to v4 #162
Conversation
This pull request introduces 2 alerts when merging 9f59c53 into 6dd0812 - view on LGTM.com new alerts:
|
@Dnouv build check is failing. Can you please check what the problem might be. Thanks. Appears to be a check on existence of |
Thanks for the review @Sing-Li yes, I have checked actually the build process expects a |
@Dnouv if you have switched to |
@Dnouv also with I'm also struggling with the version of yarn that is required --- you may want to mention this in the README.md(s) |
My bad, I will update the README, we only need the yarn in cms, the version which was currently in use with |
Seems the sane way to proceed from a blank checkout is :
then
Assuming that strapi4 works with the latest node LTS |
Yeah, it works with the latest nodeV16🎉, but still have issues running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls correct and update
Ok, so no we don't need that check. BUT, I'm confused here. Have we switched totally to yarn? If yes why? Or is it yarn for cms, npm for app. Which is a design change I dislike and don't think is a good idea to entertain. |
The server is starting properly on the local setup. |
There was an issue that is still there but was marked as resolved on the Strapi GitHub page here. And we also hit that. Currently, the |
Why only cms? @Dnouv If we switch to yarn - let's do it across project. Otherwise, we add tooling baggage for a very poor developer experience. |
@Dnouv after deleting |
As @Sing-Li said, if you must move to yarn, make it project wide, not like this. Secondly, problems like this, arise from time to time at different scale in any kind of project, be it big or small when you depend on something external. From a quick sweep over the linked issue, I could see that moving to yarn is a workaround. Changing something like your package management system and a component of your build system, project wide, is not a sensible approach just because there is a bump. I'm not saying moving to yarn is a bad idea. But for the reason you're doing it, is wrong. A better approach is to update the README to document an appropriate workaround or include a helper, i.e. doing it in a non critical way, and wait for the issue to be fixed upstream and then updating our project to reflect that. If you want to move to yarn, sure. There are many advantages to yarn over npm, but please make sure the reason you're doing it is not flickery, because what if tomorrow the same problem surfaces with yarn but npm works fine? |
Thanks for the heads up @debdutdeb |
Success! Congrats. This is a monumental job @Dnouv (and helpers!) Our dev team regularly does such extensive migration / refactor in production. But usually it is a team effort and takes a significant amount of time and full of many more diverting opinions and discussions. Kudos! Merging it now. |
@Dnouv really amazing work! |
This PR migrates the current Strapi v3 to v4.
Currently known issues:
top-nav-item
is breaking (fetchData.js
line:225)Things need to be done:
fetchData.js
.Thank you!
PS. The Strapi v4 works with
yarn
only. That's why there's ayarn.lock
.Instead of
npm install
doyarn install
Instead of
npm run build
doyarn build
Fixes: #161