-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix for Build Breaking When Deployed to Release #2507
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
Conversation
Release EnvironmentsThis Environment is provided by Release, learn more! 🔧Environment Status : https://app.release.com/public/Processing%20Foundation/env-07eca90074 |
87dafc9
to
d52d64c
Compare
The intention of the overlay stuff was to prevent mouse events from firing on the sketch while dragging the resize panel. The mistake here (which I should have caught!) is that the initial state should be p5.js-web-editor/client/modules/IDE/pages/IDEView.jsx Lines 315 to 320 in c58ff78
I think if you change the initial state to There's probably a much cleaner way to implement the intended behavior using |
I don't recall why I wrote this as two separate assignments. I wonder if it works this way?
instead of
|
Sounds good, thanks so much for the suggestions! I'll try those out and if all looks good, will hopefully be able to deploy before the end of the day! |
A majority of these changes are temporary solutions to address current issues with deploying a production build to Release.
Changes:
Reinstalls
@pmmmwh/react-refresh-webpack-plugin
as a dependency rather than a devDependency to temporarily address error where Release cannot find this package. (The root cause appears to be an issue where Babel and Webpack appear to interpret the build as different environments i.edevelopment
vsproduction
. Some possible solutions were found but I had some difficulty implementing them. Since this temporary solution doesn't seem too severe and to get the next release out soon, I'm thinking this could probably be addressed in a separate issue?)Also bumps up the above package a patch release number (
0.5.10
->0.5.11
).Removes lines 14 & 97 (which dispatches the action
stopSketch()
) fromclient/modules/IDE/pages/IDEView.jsx
to address an error where the target origin does not match the recipient for the iFrame.Changes that have been updated with @lindapaiste's suggestions commented below:
Comments out lines related to
isOverlayVisible
andsetIsOverlayVisible
inclient/modules/IDE/pages/IDEView.jsx
to address an issue where thePreviewFrame
was not receiving any mouse/keyboard interactions due to settingdisplay: block
on line 196. I wasn't sure what the exact vision was for here (I'm sorry if it's already noted somewhere!) but I decided to temporarily comment this out for now!Removes lines 1 & 52 from
client/routes.jsx
to address an error where thecomponent
property forRoute.proptypes
cannot be set (this also appears exclusively in Release for me).I have verified that this pull request:
npm run lint
)npm run test
)develop
branch.Fixes #123