-
Notifications
You must be signed in to change notification settings - Fork 7
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
chore: update react-scripts to v5 #126
Conversation
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.
Sorry this broke on you. But, thanks for looking into it!
There's a bit more work before we can merge it. I tried to explain the situation and some ideas of what we can do, totally up to you what you'd like here.
a2527d4
to
52f5e05
Compare
This updates react-scripts in the various starter apps in order to resolve an issue with hot reloading while working locally. References: - facebook/create-react-app#11771 - https://stackoverflow.com/a/70452191/656011
a9bc44f
to
c332933
Compare
c332933
to
fa98d59
Compare
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.
This looks great! Thanks for going through this.
One last bit about bumping the packages. But as mentioned, if you'd prefer to avoid making more changes/dealing with versions, just merge it now and we'll follow-up on the version bumps before making the next release.
debad6e
to
517494b
Compare
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.
Thanks again for doing all this!
Motivation
This updates react-scripts in the generated starter app from
@datadog/create-app
in order to resolve thereact-error-overlay
issue that was preventing hot reloading from working while developing an app after usingyarn create @datadog/app
.References:
Changes
Upgrade to
v5.0.0
ofreact-scripts
Testing
To See the Current Issue
yarn create @datadog/app
yarn start
in generated appsrc/widget/index.tsx
in generated appTo Test the Idea Behind This Fix
node_modules
andyarn.lock
react-scripts
version inpackage.json
to^5.0.0
yarn
To Test this Fix:
yarn link
the@datadog/create-app
packageyarn create @datadog/app --commit 52f5e05d00077915e8a7ed424d4bd83ae6e1fe85
yarn start
in generated appsrc/widget/index.tsx
in generated appyarn unlink
the@datadog/create-app
packageReleases
Choose one:
If you're only updating examples/documentation, this is likely what you want.
Only
@datadog/create-app
needs a release