Skip to content
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

fix: removes warning about --experimental flags #536

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

asanehisa
Copy link
Contributor

@asanehisa asanehisa commented Aug 7, 2024

Tested locally with node 18 and 20

Tested in platform with a starter site as well.

PR that added this code initially

asanehisa and others added 12 commits July 24, 2024 17:27
Adds the templatesJson to the header so that we can access it in the
Visual Editor.

Tested locally and verified that the templatesJson was present in a
script tag in the header.

Also verified that `npm run prod` still works as expected and the
templatesJson is not present.
dependent on #532 

view changes made in last commit for actual PR. The rest of commits are
from PR#532
This provides a post request option for `serverRenderRoute` which
overrides the c_visualLayouts field of the pulled document with the
overrides that are passed in from the request.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Kilpatrick <mkilpatrick@yext.com>
@asanehisa asanehisa marked this pull request as ready for review August 14, 2024 15:40
@asanehisa asanehisa requested a review from a team as a code owner August 14, 2024 15:40
@asanehisa
Copy link
Contributor Author

@mkilpatrick lmk if there's more specific testing I should be doing

// React should really export this file as it's the correct solution to use with Node without
// experimental flags. Once that happens the .js can be added back to the react-dom/server usages.
// https://github.com/facebook/react/issues/26170
export function resolve(specifier, context, nextResolve) {
Copy link
Collaborator

@mkilpatrick mkilpatrick Aug 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test using different versions of React and Node, along with testing those same combos in Windows? I don't want to remove this without verifying we're not breaking something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants