Skip to content
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

请教如何激活react-devtools 还是有问题 #43

Open
zeroarst opened this issue Jul 3, 2023 · 1 comment
Open

请教如何激活react-devtools 还是有问题 #43

zeroarst opened this issue Jul 3, 2023 · 1 comment

Comments

@zeroarst
Copy link

zeroarst commented Jul 3, 2023

先说我其实是使用这个模版https://github.com/lxieyang/chrome-extension-boilerplate-react
但看到你在官网有发问怎么激活react-devtools facebook/react#24844
你说你有加react-devtools在每个entry前了,但是不工作,后来你又发了一个commit 5d426a3
看起来是要自己加tag?
一路找到你这里的repo,又找到了这篇: #39
你又说加官网说的加entry,可是上面不是说不能工作了吗?

我自己是照了react官网作:
添加了依赖
image

加了 'react-devtools' 到每个entry最前面
image

我是先手动激活专案下的 npx react-devtools
然后跑专案
console出错Uncaught TypeError: hook.sub is not a function
image

怎么样都修不好啊…请教我还可能漏了什么吗?

@tjx666
Copy link
Owner

tjx666 commented Jul 4, 2023

要自己加 tag:https://github.com/tjx666/awesome-chrome-extension-boilerplate/blob/manifest-v3/server/configs/webpack.common.ts#L160

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants