When I install moralis In a new project I got this thing
Compiled with problems:X
ERROR in ./node_modules/react-moralis/lib/index.esm.js 4:0-30
Module not found: Error: Canât resolve âhttpâ in â/home/baibars313/Downloads/golden_sea/golden_sea/node_modules/react-moralis/libâ
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback âresolve.fallback: { âhttpâ: require.resolve(âstream-httpâ) }â
- install âstream-httpâ
If you donât want to include a polyfill, you can use an empty module like this:
resolve.fallback: { âhttpâ: false }
ERROR in ./node_modules/react-moralis/lib/index.esm.js 5:0-31
Module not found: Error: Canât resolve âhttpsâ in â/home/baibars313/Downloads/golden_sea/golden_sea/node_modules/react-moralis/libâ
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback âresolve.fallback: { âhttpsâ: require.resolve(âhttps-browserifyâ) }â
- install âhttps-browserifyâ
If you donât want to include a polyfill, you can use an empty module like this:
resolve.fallback: { âhttpsâ: false }
ERROR in ./node_modules/react-moralis/lib/index.esm.js 6:0-29
Module not found: Error: Canât resolve âurlâ in â/home/baibars313/Downloads/golden_sea/golden_sea/node_modules/react-moralis/libâ
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback âresolve.fallback: { âurlâ: require.resolve(âurl/â) }â
- install âurlâ
If you donât want to include a polyfill, you can use an empty module like this:
resolve.fallback: { âurlâ: false }
ERROR in ./node_modules/react-moralis/lib/index.esm.js 7:0-32
Module not found: Error: Canât resolve âstreamâ in â/home/baibars313/Downloads/golden_sea/golden_sea/node_modules/react-moralis/libâ
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback âresolve.fallback: { âstreamâ: require.resolve(âstream-browserifyâ) }â
- install âstream-browserifyâ
If you donât want to include a polyfill, you can use an empty module like this:
resolve.fallback: { âstreamâ: false }
ERROR in ./node_modules/react-moralis/lib/index.esm.js 8:0-32
Module not found: Error: Canât resolve âassertâ in â/home/baibars313/Downloads/golden_sea/golden_sea/node_modules/react-moralis/libâ
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback âresolve.fallback: { âassertâ: require.resolve(âassert/â) }â
- install âassertâ
If you donât want to include a polyfill, you can use an empty module like this:
resolve.fallback: { âassertâ: false }
ERROR in ./node_modules/react-moralis/lib/index.esm.js 9:0-30
Module not found: Error: Canât resolve âzlibâ in â/home/baibars313/Downloads/golden_sea/golden_sea/node_modules/react-moralis/libâ
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback âresolve.fallback: { âzlibâ: require.resolve(âbrowserify-zlibâ) }â
- install âbrowserify-zlibâ
If you donât want to include a polyfill, you can use an empty module like this:
resolve.fallback: { âzlibâ: false }