-
Notifications
You must be signed in to change notification settings - Fork 982
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
[Bug?]: project:sync is broken #8580
Comments
Hey @arimendelow, I'm actually working on that fixing that error here #8579. I think I have it fixed and discovered a few more things that weren't quite right with that script. There's still a few improvements I want to make, but I think it fixes the issue you're seeing. Could you confirm for me by pulling down that branch and running |
@arimendelow and about the SVG change, yes that's one of the breaking changes we're working out for the next major. The change was in this PR: #8301, and WIP codemod here: #8564 |
@jtoar ahhh thanks for the quick reply! that SVG change is easy enough. I pulled down and built your branch, and then after cleaning up both my project and the fw with |
@arimendelow No I don't think so, all the steps you mentioned seemed like enough. I'll just have to keep trying things to figure out what's going on. I'll post a short video soon showing what I'm doing just so you can double check |
@jtoar sounds good :) |
@arimendelow A higher resolution is taking longer to process but here's what I'm doing (there's no audio, just a quick recording I did with Mac's screenshot utility): https://www.youtube.com/watch?v=0yLUZ2GhX-A One thing I should've asked: what's your OS? |
Also I'll add: sorry, I'm force pushing to that branch a lot which means if you want the new changes they're a little harder to get locally |
@jtoar thanks! that's pretty in line with what I was doing, I'll pull down your latest changes and report back. macOS....whatever the latest is 😄 |
lol yeah i was wondering what was going on there. no worries! |
@jtoar just tried with your latest changes, still have this issue. are you able to make edits to DbAuthHandler in sync mode? maybe give that a try as a repro |
@jtoar is there a recommended workflow for working on the framework while you're working on this fix? cc @thedavidprice @cannikin if you have any suggestions :) |
You could use |
yeah, i was thinking there'd be a command like that - better than nothing! is that what you've been doing? |
Yeah there's been a couple of times when |
cool, thanks @cannikin! do you folks think there's an ETA on this fix or should I get used to using project:copy? 🙃 |
@arimendelow If you could try out this PR locally and provide feedback to @jtoar it would be very helpful! (no pressure, to be clear) |
@thedavidprice do you know if there have been meaningful updates to the PR since yesterday? as of yesterday, it still didn't work (see above) |
@arimendelow just worked for me ✅ |
@thedavidprice have you tried editing |
@arimendelow Gah, I just reproduced the error after editing the file. The first time I simply walked through the steps outlined in the PR. Great catch. I've updated the review here: |
@thedavidprice thanks for the support 🙂 hurdle 1 of what I assume to be many on my journey to add OAuth to dbAuth! |
@jtoar @thedavidprice Is that expected? It's quite annoying, but workable. |
@arimendelow By web-side file, do you mean in your redwood project? Or in the |
It was specifically the web side auth stuff from the Redwood side |
The auth context provider, for example |
Thanks @arimendelow I can reproduce that; the first change takes effect but not subsequent ones, even after re-starting the dev server. I'm guessing it has to do with Vite caching, but don't know for sure so I'll read up on it and ask the team. |
@arimendelow so Vite node_modules caching is definitely a thing and it only re-bundles based on these events, which
Source: https://vitejs.dev/guide/dep-pre-bundling.html#file-system-cache. We'll figure out how to make this easier, but for now this should save you from having to do a git clean and rebuild. Start your dev server like this:
Make sure you see this in your terminal:
You'll have to restart your dev server every time you make a change, but it'll be much faster than a full git clean and rebuild. |
ahhhh yup makes sense - the workaround works great, thanks @jtoar! :) |
I'll close this bug as I feel your PR fixed it |
What's not working?
Following the contribution instructions, I'm attempting to work on a Redwood package alongside my existing project. My project is fully up to date.
I'm running into a few fully breaking issues:
It flat out breaks my project
After I run the
project:sync
command, I see a successful output:I then run
yarn rw dev
, but my project now has random breaking issues:Sync is broken and crashes
I then tried to see if syncing even worked, so I went to the package that I want to work on (auth-providers/dbAuth), and added a simple console log just to see if it would sync. Doing that leads to project:sync crashing:
I've run
git clean -fxd
,yarn cache clean
... it seems to be an issue with the project itself.Am I doing something wrong?
Thanks!
How do we reproduce the bug?
No response
What's your environment? (If it applies)
No response
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: