admin管理员组文章数量:1305383
I'm using a React app with module federation and webpack. I've recently updated all the micro UIs and the host from react 18 to react 19.
The production build works fine with no warnings or errors, but when running in development I get the following error:
The current testing environment is not configured to support act(...)
I know I've seen this in testing but this is when running the app using webpack serve --open --mode development, and I never saw this when using React 18.
I've checked the dependencies on both the host and the micro UIs. Non of the reference any testing libs. I've tried setting the IS_REACT_ACT_ENVIRONMENT variable to both true and false in the way this question does, but that issue comes about when running tests.
I suspect the error is happening when webpack is loading other modules, but I don't have a lot of information to confirm that.
本文标签: reactjsThe current testing environment is not configured to support act()Stack Overflow
版权声明:本文标题:reactjs - The current testing environment is not configured to support act(...) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741775326a2396990.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论