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

Chrome extension not working with Next.js v11 #38

Closed
modbp opened this issue Nov 29, 2021 · 5 comments · Fixed by #40
Closed

Chrome extension not working with Next.js v11 #38

modbp opened this issue Nov 29, 2021 · 5 comments · Fixed by #40
Assignees
Labels
bug Something isn't working

Comments

@modbp
Copy link

modbp commented Nov 29, 2021

Trying to get this working with Next.js 11+ and not having any luck.

I downloaded and ran the example site, but when I upgraded it from Next 10.0.6 -> 11.0.0 the Chrome extension stopped working (it just shows "Haven't received any cache data from SWRDevTools"). The React panel continues to work as expected after the upgrade. Tried to figure out what is going wrong, but no luck.

Love the promise of this package! Thanks for all of your work on it, it's the biggest thing I'm missing with SWR.

@koba04
Copy link
Owner

koba04 commented Dec 4, 2021

Thank you for reporting the issue! I'll test it on Next.js v11 and v12.

@koba04 koba04 added the bug Something isn't working label Dec 4, 2021
@koba04 koba04 self-assigned this Dec 4, 2021
@koba04
Copy link
Owner

koba04 commented Dec 4, 2021

I've confirmed that this has been fixed with webpack5: false in next.config.js, so I have to make swr-devtools webpack v5 compatible.

@koba04
Copy link
Owner

koba04 commented Dec 4, 2021

The middleware of SWRDevtools seems not to be called with Next.js v11.

@koba04
Copy link
Owner

koba04 commented Dec 5, 2021

@modbp I've fixed it and released it as v0.4.0, so could you test the version?
https://github.com/koba04/swr-devtools/releases/tag/v0.4.0

If your application still doesn't work, please confirm that it only includes single swr in your bundle.

@modbp
Copy link
Author

modbp commented Dec 8, 2021

Hi @koba04, looks like it's all worrying now on my end. 🎉🎉🎉

Thank you so much for addressing this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants