当前位置: 动力学知识库 > 问答 > 编程问答 >

reactjs - When developing Chrome extension, Chrome React Devtools doesn't show up

问题描述:

I am debugging my chrome extension pop page, and open it in uri :

chrome-extension://keekhfjbmbpmlgpfljclblgbjchoencn/popup.html

This page is using reactjs, but the react devtools is not showing.

Is it by design?

网友答案:

The React Dev Tools needs to inject a content script in your page to check your react components. To do that they declare in their manifest the pattern that matches any url with a permitted scheme and these are (from the docs https://developer.chrome.com/extensions/match_patterns):

http, https, file, ftp

In other words: the React Developer Tools can not run in extension pages.

分享给朋友:
您可能感兴趣的文章:
随机阅读: