'BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default while deleting images in cloudinary using react
I want to delete images of cloudinary in react , i am using firebase for backend , so cant use node.js backend api, so have to use cloudinary api to delete image, but after searching realized that there is no frontend api for deleting the image because of security reasons.
I'm using
var cloudinary = require('cloudinary');
cloudinary.config({
cloud_name: "########",
api_key: "########",
api_secret: "########"
});
cloudinary.v2.uploader.destroy('sample', function(error,result) {
console.log(result, error) });
When i use the above code i'm getting webpack< 5 error
, how to overcome this?
They say to generate signature, but there is no proper example to the same.
How to generate Signature and delete using the same
(OR)
How to get rid of this webpack error while using node.js code in frontend
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|