'Module not found: Error: Can't resolve 'querystring' in '/Users/apple/Documents/mern-instagram/instagram-clone/node_modules/react-instagram-embed/es'

After installing react-instagram-embed package I got this error and tried all possible solution but still not working!!! Anyone knows solution for this???enter image description here



Solution 1:[1]

querystring is deprecated since at least since last Node LTS version 14.

So if you want to keep your current version of react-instagram-embed

install querystring-es3

yarn add querystring-es3 or npm i querystring-es3

in your webpack.config.js configuration file update or add the resolve entry to look like this

resolve: {
   fallback: { "querystring": require.resolve("querystring-es3") }
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nwawel A Iroume