Skip to content

Bug: 17.0.1 npm packages were not built from 17.0.1 source code? #20912

@kokushkin

Description

@kokushkin

React version: 17.0.1

Steps To Reproduce

  1. Go at https://codesandbox.io/s/warning-issue-formik-v2-tutorial-start-forked-lwtxx?file=/src/index.js
  2. Then reproduce the famous "warning" (the issue is not about this warning)
    image
    (type something in the Tool ID)
    (the codesandboxe may freeze a little bit, try to reload the page)
  3. Open the browser console (chrome in my case) and you will see
    image
    Then go to the code (red arrow on the image above)
  4. Make a breakpoint here
    image
    reload the page and initiate the "warning" again (see 2)
  5. Go down the callstack and you can see the "warning" is written by this code
    image
  6. Now the question.. I'm using the 17.0.1 version and this code shouldn't exist there. Check this out https://github.com/facebook/react/releases/tag/v17.0.1 and you can find only this:
    image
    As you can see instead of error('A component is changing... we have console.error( 'A component is changing....
    The changes were made by this 0cf22a5#diff-e94b1d695a508a3bacbab157bbc3035d75e53174bdb82181077d1b374046f9a6 long time ago.
  7. Does it mean that 17.0.1 version of react and react-dom packeges were not built from this source code https://github.com/facebook/react/releases/tag/v17.0.1 ? Seems like a big issue then.
  8. It happens without Codesandbox as well.

Link to code example:
https://codesandbox.io/s/warning-issue-formik-v2-tutorial-start-forked-lwtxx?file=/src/index.js

The current behavior

We keep seeing the word "Warning" (which is produced by warning function, though it's not a warning but an error)
image

The expected behavior

We shouldn't see the word "Warning" if the packages v.17.0.1 were bilt from https://github.com/facebook/react/releases/tag/v17.0.1 sourcecode (because it calls console.error( 'A component is changing... instead of error('A component is changing... )
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions