-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Improve CONTRIBUTING.md #14760
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
Comments
You mean testing changes to this package in your app? That's be nice I agree. The whole build infrastructure would do good with an overhaul
Of course not. However contributions should primarily be tested in this package. We will not accept changes that were only tested in your code. Personally I didn't have issues with linking packages.
We have a section about this: https://github.com/mui-org/material-ui/blob/next/CONTRIBUTING.md#how-do-i-use-my-local-distribution-of-material-ui-in-any-project |
Yes I did follow those steps from that page - but I had to add extra steps to resolve linkage across dependencies. The |
Well if our steps are working and your steps not and I don't know how your dev server works how am I supposed to help you? |
The steps listed in
And in the
Failed
Tested on macOS and Linux |
My steps are your steps. You said to link, so I followed those instructions and then copy+pasted the resulting commands. It links core, styles, system, and utils from branch next. The steps implied in Did anyone try the scripts?
The reason the scripts use |
I've had a couple of issues myself trying to set up a local distribution, with some similar error messages. I asked for help on Spectrum, so once this is resolved I'd be happy to help try and improve the Contributing guidelines if needed. |
Looked into this a bit. Best course of action right now is to change -modules: ['node_modules'].concat(
+modules: [path.resolve('node_modules'), 'node_modules'].concat( Without ejecting there's currently no workaround until facebook/create-react-app#6207 has landed. This should fix the following issues:
Another solution would be to set I would need a reproducible example to investigate the hooks error in nextjs. The error is actually way more generic than the message would let you believe. In addition I've indentified the following contributor features:
We appreciate any help offered with these items. |
I can confirm that changing |
I'm a would-be first time contributor trying to set up my dev env and I'm running into these same problems. Maybe it would be a good idea to add the info here to The approach I'm attempting is:
Is this the recommended way to make a local dev setup? |
Not really, you shouldn't need to make a fresh CRA site – you can test it with the docs site:
That's it! (Other than to optionally add the source repo as an upstream remote, in order to fetch updates) |
Should we update the I start to think that testing the changes in another project is a pattern we should avoid. The maintainers should be able to review the pull requests, the maintainers don't have access to people projects. By removing the mention to |
Sounds good to me. As far as I know yarn v2 will resolve linking issues and duplicate instances of react but we can always reintroduce mention of yarn lint once it becomes stable. |
My opinion is that Although making a test in your sandbox is surely needed prior to PR. If it is not possible to fix
|
In my experience this leads to PRs that have neither documentation nor tests updated. By not enabling yarn link we force contributors to write a test or change the documentation which means less friction when reviewing the PR. The contributor knows that this is working because they had some sandbox locally but the maintainer doesn't know that and can't maintain the current solution since they can't know what this implementation should actually achieve. |
I suggest we rework the any notes and guidelines will be below these sections. |
This is what I have atm: https://gist.github.com/croraf/c8255bd5d5eb5adca4760cdc80b576a4 This is what still has to be filtered and included in the document: https://gist.github.com/croraf/9735cb863321aa7d6c0e89b4bdb22e2c |
I think that we close, we should have addressed the concerns, we have removed the linkable section. Let's wait to get feedback from the new contributing guide. |
Uh oh!
There was an error while loading. Please reload this page.
If we can make it easier to contribute to Material-UI, then it could help the project with more contributions.
CONTRIBUTING.md
has incomplete information for making alink
-able dev setup, only making reference to tell you that you should useyarn link
.link
-able build.The script
This is not documented:
All commands complete successfully and the dev server starts up, and then fails.
"scripts":
?link
-ed build dependency order so that the builds don't use the wrong links?Errors with relative imports outside of src/
NextJs version errors with hooks invariant violation:
This can be improved
link
-able local dev setup for Material-UI?The text was updated successfully, but these errors were encountered: