# Node Import Error

**URL:** <https://community.auth0.com/t/node-import-error/184150>\
**Category:** Auth0 Fine-Grained Authorization\
**Created:** [March 19, 2025, 7:17pm UTC](https://community.auth0.com/t/node-import-error/184150 "2025-03-19T19:17:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephenbawks1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephenbawks1/32/71238_2.png) [@stephenbawks1](https://community.auth0.com/u/stephenbawks1)\
**Post date:** [March 19, 2025, 7:17pm UTC](https://community.auth0.com/t/node-import-error/184150/1 "2025-03-19T19:17:40Z")

</div>

Just got this error importing the openfga sdk into Node 20.

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

---

<div class="post-metadata">

**Author:** ![ewan.harris](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ewan.harris/32/73262_2.png) [@ewan.harris](https://community.auth0.com/u/ewan.harris)\
**Post date:** [March 20, 2025, 12:03pm UTC](https://community.auth0.com/t/node-import-error/184150/2 "2025-03-20T12:03:13Z")

</div>

Hi @stephenbawks1, as the SDK uses the builtin Node.js http module, you’ll need to instruct webpack to use a polyfill for it. You can do this by installing the [stream-http](https://www.npmjs.com/package/stream-http) library and then telling webpack to use it as a fallback using the [resolve.fallback](https://webpack.js.org/configuration/resolve/#resolvefallback) option in your webpack configuration.

Just to note that the SDK is more intended for use within server side runtimes so make sure that using it in a browser might not be ideal given the use of a client secret.
