通过创建npx create-react-app
React应用程序并运行它时,DevTools(Chrome 88 和 89)中会弹出警告:
scheduler.development.js:298 [Deprecation] 自 M91 起,即 2021 年 5 月左右,SharedArrayBuffer 将需要跨源隔离。有关更多详细信息,请参阅 https://developer.chrome.com/blog/enabling-shared-array-buffer/。
环境
current version of create-react-app: 4.0.1
running from /Users/mahdi/.npm/_npx/25767/lib/node_modules/create-react-app
Binaries:
Node: 14.15.4 - ~/.nvm/versions/node/v14.15.4/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.10 - ~/.nvm/versions/node/v14.15.4/bin/npm
Browsers:
Chrome: 88.0.4324.96
Edge: 87.0.664.66
Firefox: 84.0
Safari: 14.0.2
npmPackages:
react: ^17.0.1 => 17.0.1
react-dom: ^17.0.1 => 17.0.1
react-scripts: Not Found
npmGlobalPackages:
create-react-app: Not Found
重现步骤
npx create-react-app myapp
cd myapp && npm start Open
- Chrome 88 或 89 中的http://localhost:3000,常规或隐身模式
- 打开 DevTools:显示警告
任何解决此警告的建议?