Skip to content

Problem with: react.production.min.js:20 Uncaught TypeError: Cannot set properties of undefined (setting 'Children') #561

@BorzovRuslanR

Description

@BorzovRuslanR

Related plugins

Describe the bug

After building the react application with vite.js, I get this error when I access the application's home page:

react.production.min.js:20 Uncaught TypeError: Cannot set properties of undefined (setting 'Children') at requireReact_production_min (react.production.min.js:20:1) at requireReact (index.js:4:20) at requireUseSyncExternalStoreWithSelector_production (use-sync-external-st…production.js:12:13) at requireWithSelector (with-selector.js:4:20) at with-selector.js:7:1.

When I open the application in development, the error is not present in production mode, it is present. Have you ever encountered this problem? Thanks in advance.

Reproduction

vite.new/reac

Steps to reproduce

No response

System Info

Jenkins + vite last + react 19

Used Package Manager

yarn

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions