-
Notifications
You must be signed in to change notification settings - Fork 53
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
Document how to work with the otp-ui packages during development #773
Comments
I believe this reason this is currently undocumented is due to the to put it politely poor quality of the current approaches to doing this. Reforming this process and making it easier to development on these components is a goal. How that goal will be achieved is less clear |
https://stackoverflow.com/a/63705440/288568 which leads to facebook/react#14257 (comment) that looked very promissing This did not help cd ~/projects/otp-ui cd ~/projects/otp-react-redux next try: delete node_modules in otp-ui and otp-react-redux
Search for a trip, open the trip details -> still crashes... npm ls shows react 16 and react 17 mixed .. I guess this is part of the problem
|
With yalc I found some okayish workflow:
Now each time you change something in the package:
might also need:
Finally:
|
I'm not sure how I feel about adding another external tool as an "official" dependency, but I'm happy to discuss with other maintainers offline. Either way glad you found a solution that works for you! |
Does not seem to work for the |
I think I'll leave this issue open for now, but we'll hold off on updating the main README until we have a stronger solution. Glad you've found this |
During development of the otp-react-redux app it is sometimes necessary to update OTP-UI components.
I tried with yarn link, but that is not fully working:
See also #716
Can we document a workable approach to do this?
I hope, if this process can be more smooth, this might attract also more (new) contributors.
The text was updated successfully, but these errors were encountered: