Closed
Description
Website or app
Repro steps
Because react requires java, not on macos (but assumes brew installed!):
brew update && brew install java
sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
export PATH="/usr/local/opt/openjdk/bin:$PATH"' >> ~/.zshrc
export PATH="/usr/local/opt/openjdk/bin:$PATH" >> ~/.zshrc
export PATH="/usr/local/opt/openjdk/bin:$PATH"
Because react requires node before v17 (but assuming you have nvm installed!):
nvm install 16
then the real stuff (directions inside folders like ./chrome/ are quite wrong):
git clone https://github.com/facebook/react.git
cd react
yarn install
yarn build-for-devtools
cd packages/react-devtools-extensions
yarn build:chrome
yarn build:chrome:local
yarn run test:chrome
Now inside devtools:
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval'".
at ./src/contentScripts/prepareInjection.js (prepareInjection.js:133:1)
at __webpack_require__ (prepareInjection.js:20:30)
at prepareInjection.js:84:18
at prepareInjection.js:87:10
What exactly are you doing that works in order to build, test, and develop this extension?
How often does this bug happen?
Every time
DevTools package (automated)
No response
DevTools version (automated)
No response
Error message (automated)
No response
Error call stack (automated)
No response
Error component stack (automated)
No response
GitHub query string (automated)
No response