-
Notifications
You must be signed in to change notification settings - Fork 42
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
Errors in React and @waku/sdk #1415
Comments
One clue I found is that the |
Craco should not be fixing the polyfills AFAIK. Indeed, this is bad that they are so many polyfills, not sure how we did not notice them before. |
We expect #1400 to help with this. |
@agazso can you try |
I can confirm that with There are some new warnings, I am not sure if they cause any problems, but I copy here in case you want to investigate further:
|
@agazso great, thank you for checking! for the source maps problem, I guess maybe re-configuring might help. I also observed them in one of our examples but didn't investigate them. note: we still have some problems with browser incompatible packages, issue on libp2p side not resolving this issue till I investigate the other problem |
Closed as issue is resolved and the one observed in |
This is a bug report
Problem
I want to build a frontend app using React (
create-react-app
) and Waku, but currently I get a lot of unresolved modules errors from the different dependencies (see below) and I could not find out from the examples or the documentation how to fix it.There are React examples and they work, but with seemingly the same version of React and other dependencies. However if I remove the
package-lock.json
file from the examples and donpm install
then they also display the same errors.It is completely possible that I am doing something wrong, or I am missing an obvious step to do. In that case it would be good to know that and add to the documentation. I also ran into similar problems with Vite based projects (Preact, Vue, Svelte) but that may be a discussion in another issue.
The commands I used:
See the repo here:
https://github.com/agazso/waku-react-example
Notes
The text was updated successfully, but these errors were encountered: