-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Compatibility with webpack 5 #3369
Comments
Attempt to build code that uses
All of them seem to come from
Adding resolve.fallback us suggested by the error message, gets build go through, however it does not actually address the problem but rather defers it to the runtime:
There is also relevant issue isaacs/core-util-is#29 on file which should address that if fixed. |
It is possible to workaround that using webpack.ProvidePlugin as follows:
However that just uncovers another runtime problem:
|
That last issue could be overcome via
|
This should be handled by aegir and not in this repo.
This is usually solved by adding Buffer: true to the |
This is for IPFS examples (or use of js-ipfs in general) so I don't think telling users to use |
Don't get me wrong, I'm not suggesting we should tell people to use aegir, but the best way for us to be compatible with webpack 5 is to upgrade the version of webpack aegir uses so we are bundling with webpack 5 ourselves. That way we dogfood it and (ideally) the user will not have to do any special config. |
I have been trying to write an example that uses webpack 5 and sadly things don't work out of the box. I would like to use this thread to document problems, ways to workaround and track the issues that need to be addressed to get make things compatible.
The text was updated successfully, but these errors were encountered: