-
Notifications
You must be signed in to change notification settings - Fork 1
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
Compatibility with Webpack 5 #108
Comments
🎉 This issue has been resolved in version 4.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This should now work. |
I'm sorry but I have to reopen this issue and revert back some changes. But I made some preparations for supporting Ecmascript Modules-only bundlers and node at the same time. But I have first make some other bigger changes. |
Hi, |
After updating from Webpack 4 to 5.1.3. the following behavior occurs.
While building Webpack warns about the changed behavior about browser-polyfill.
The hoodie-plugin-store-crypto is affected by the “stream-browserify” polyfill and shows the following warning:
So like the warning say I install stream-browserify (3.0.0) manually and add the fallback in the webpack file.
Result: the webpack warning is gone but when I load my app the browser (chrome) shows the following error:
![image](https://user-images.githubusercontent.com/37152440/96366260-cb3baa00-1146-11eb-82dc-ba9dd6c7d369.png)
"default-encoding.js:3 Uncaught ReferenceError: process is not defined"
So I install process (0.11.10) manually and add it to the plugin section in the webpack file:
After this the Browser brings the follwoing error when creating a new store.. (when loading an exisitng it fails alos but only shows an authentication error)
![image](https://user-images.githubusercontent.com/37152440/96366887-caa51280-114a-11eb-8283-83c769bb82c0.png)
"ReferenceError: Buffer is not defined"
So I install buffer (5.6.0) and add it also to the plugin section in the webpack file:
For now it seems to work, but I'm not sure if my doing is correct or has any side effects.
Maybe all this missing dependencies, polyfill and config should be add to the hoodie-plugin-store-crypto directly?
The text was updated successfully, but these errors were encountered: