Angular 13 - CipherBase Module - Can't resolve 'stream'

Hello there imma get this Error after installing Moralis API to test it:

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 }**


I tried alot of things. In the node_modules i changed var | Transform = require(‘stream’).Transform | to | var Transform = require(‘readable-stream’).Transform | but than i get this Error in Browser and my page is gone:

Uncaught ReferenceError: process is not defined
at 50074 (util.js:109:1)
at webpack_require (bootstrap:19:1)
at 56094 (assertion_error.js:35:16)
at webpack_require (bootstrap:19:1)
at 40431 (assert.js:36:22)
at webpack_require (bootstrap:19:1)
at 77740 (account.js:23:32)
at webpack_require (bootstrap:19:1)
at 19412 (index.js:25:14)
at webpack_require (bootstrap:19:1)

Also i added the polyfill in both ways like written in the Error. But it doenst work. Any Solutions?

Hey @Impalah

I’m not sure if you are using the Moralis SDK in your Angular frontend, but it is a backend only SDK and cannot be used in the frontend at the moment.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.