-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
DevTools warning: SharedArrayBuffer will require cross-origin isolation #10474
Comments
Maybe this scheduler code is the reason for this warning. |
This issue should be filed in the React repo: Check first to make sure it isn't already there though :) |
Filed here: facebook/react#20829 |
Can you please close this issue then? :) |
The issue seems to be still existing on the link provided by @maudnals and same as in my project using cra even in the basic starter @ https://7onz7.csb.app/ |
The fix only landed a few days ago and has not yet been released. |
17.0.2 is out with the fix. (But there was no real problem, it's a false positive.) |
Again, the fix was released. If the warning doesn’t go away, you somehow still have a wrong version somewhere in your code. We can’t guess why. |
@sonpnh95 Perhaps some other package is using <!-- Issue workaround for React v16. -->
<script>
// See https://github.com/facebook/react/issues/20829#issuecomment-802088260
if (!crossOriginIsolated) SharedArrayBuffer = ArrayBuffer;
</script> |
This is a workaround for React v16 while we don't upgrade to v17 See facebook/create-react-app#10474
Thanks for sharing. Can you explain what this is doing? I tried it in Next.js and got a bad memory error. |
Describe the bug
When creating an app via
npx create-react-app
and running it, a warning pops up in DevTools (Chrome 88 and 89):scheduler.development.js:298 [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M91, around May 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.
Did you try recovering your dependencies?
Yes
Which terms did you search for in User Guide?
sharedarraybuffer
returned no result.Environment
Steps to reproduce
npx create-react-app myapp
cd myapp && npm start
Expected behavior
Actual behavior
Warning:
scheduler.development.js:298 [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M91, around May 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.
Reproducible demo
See instructions in Steps to reproduce.
Thank you!
The text was updated successfully, but these errors were encountered: